Changes

Created page with "__TOC__ ==Next calibration date parsing== The value is received as 4 byte Hexadecimal value. Example how to parse it to Human readable date is provided in the table below: {..."
__TOC__

==Next calibration date parsing==
The value is received as 4 byte Hexadecimal value. Example how to parse it to Human readable date is provided in the table below:

{| class="wikitable"
|+
! style="width:20%; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: center;" |Step
! style="width:35%; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: center;" |Next Calibration Date (AVL ID:10503)
! style="width:10%; border: 1px solid white; border-bottom: 2px solid #0054A6; background: white; color: #0054A6; text-align: center;" |Format
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: left;" |1. Received value
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |66-64-F0-80
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |HEX
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: left;" |2. Converted to DEC
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |1717891200
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |DEC
|-
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: left;" |3. Converted to Human readable date
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |Sunday, June 9, 2024 12:00:00 AM, GMT+00:00
| style="border: 1px solid white; border-bottom: 2px solid #E8E8E8; background: white; text-align: center;" |Human readable date
|-
|}
Converting whole 4 byte Hexadecimal - 66-64-F0-80 value to decimal value as it is equivalent of Unix timestamp in seconds - 1717891200. Convert epoch to human-readable date: https://www.epochconverter.com/<br />
0

edits

Navigation menu