About the timing of fetching in DeviceTimeAns

I get the time from the gateway reply command DeviceTimeAns as shown in the picture.

First of all, is the time correct? If so, how do I convert to UTC? I don’t understand the conversion algorithm.


Please format your post correctly, all text, code etc. you can post in between </>

So you want to convert a epoch to UCT?

Sorry, this is my bad habit of Posting. Yes, I want to convert an epoch to UCT.

Fix your bad habit please :slight_smile: we are volunteers helping, help us to help you.

It is the nanoseconds from Thursday, January 1, 1970 12:00:00 AM time, so just add the nanoseconds.

But be aware some might express it in seconds, milliseconds, microseconds and nanoseconds.

No, it’s 1663316472

Google comes up with sooooo many hits for this.

And frankly, the Unix time format is like breathing, it’s just known, so please please consider using Google first

1 Like