Timestamp parsing

From Wiki Knowledge Base | Teltonika GPS
Revision as of 06:47, 7 October 2022 by Donatas.Andriulionis (talk | contribs) (Created page with "==Timestamp parsing== The value is received as 4 byte hexadecimal value. Example how to parse it to a human readable date is provided in the table below: {| class="wikitable"...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

Timestamp parsing

The value is received as 4 byte hexadecimal value. Example how to parse it to a human readable date is provided in the table below:

Step Timestamp Format
1. Received value 63-36-86-D0 HEX
2. Converted to DEC 1664517840 DEC
3. Converted to Human readable date Friday, September 30, 2022 06:04:00 AM, GMT+00:00 Human readable date

Converting whole 4 byte Hexadecimal - 63-36-86-D0 value to decimal value as it is equivalent of Unix timestamp in seconds - 1664517840. Convert epoch to human-readable date: https://www.epochconverter.com/