OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: b2bpro on October 28, 2004, 10:04:46 pm

Title: Decoding dates in datebook xml
Post by: b2bpro on October 28, 2004, 10:04:46 pm
Anyone know the magic algorithm to decode the datetimes in the databook.xml file?

for instance start="1098745200"  means 2004 October 25, 7:00 pm.

How do these work?
Title: Decoding dates in datebook xml
Post by: carpman on October 28, 2004, 10:51:34 pm
Thats a unix timestamp, or seconds from standard epoch of 1/1/1970. You can verify that here (http://www.onlineconversion.com/unix_time.htm)...
Title: Decoding dates in datebook xml
Post by: b2bpro on October 28, 2004, 11:01:07 pm
Excellent - Thank you
Title: Decoding dates in datebook xml
Post by: zenyatta on October 29, 2004, 04:53:59 am
To be exact, the epoch is 00:00 1 January 1970 GMT - watch out for timezone differences when working with the numbers...

z.