When data streams are exported from device cloud, the timestamp format is not in a useful format. Can anything be done to convert this or to export data in a manner that translates timestamp correctly?
The timestamp is in EPOCH format, that means it’s a “long” integer of the amount of miliseconds that have passed since January 1st, 1970.
There are differente libraries for parsing EPOCH timestamp into other formats. It depends on the programming language.
here is something in python close to what you want.:
TIME1970 = 2208988800L
t = struct.unpack( ‘!12I’, data )
t -= TIME1970
timeString = ‘%s’ % time.ctime(t)
print "timeString = ", timeString