I am attempting to read a date from an array of bytes.
The byte data format is described as "32-bit time_t low byte first".
The datetime represented by the values in buf below should be within the past 24 hours.
The log result of this, 1.709138926E9, is tantalizing but is not a proper datetime representation.
I believe the values represent a signed date and I'm reading them as an unsigned integer, not a signed long, but I can't figure out the proper conversion.
I would be most appreciative of any assistance.
Thank you
The byte data format is described as "32-bit time_t low byte first".
The datetime represented by the values in buf below should be within the past 24 hours.
get date from bytes:
Dim buf() As Byte = Array As Byte(0xEE, 0x63, 0xDF, 0x65)
raf.Initialize3(buf,True)
Log(raf.ReadInt(0))
The log result of this, 1.709138926E9, is tantalizing but is not a proper datetime representation.
I believe the values represent a signed date and I'm reading them as an unsigned integer, not a signed long, but I can't figure out the proper conversion.
I would be most appreciative of any assistance.
Thank you