These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

charNotificationTexts - time returned and halp!? [Solved]

Author
Crappy Non'main'o
TOLL Logistics
#1 - 2012-06-07 17:51:53 UTC  |  Edited by: Crappy Non'main'o
So was playing around with the charNotificationTexts today (specifically the war notifications) and saw startTime was some weirdly long number... [ 129836510340000000 ]

How in the name of *Insert random name here* do I convert this back to 2012.06.08 17:43

If its any help I'll be using PHP/mysql for this small little project I'm doing

Edit: Got help in IRC just as I was about to leave :)

$x = ($v/10000000)-11644473600;

will convert it to unix epoch time where $v = the time returned in the api
Khorkrak
KarmaFleet
Goonswarm Federation
#2 - 2012-06-07 18:40:15 UTC
Source: Citrix Support
Windows NT time is specified as the number of 100 nanosecond intervals since January 1, 1601. UNIX time is specified as the number of seconds since January 1, 1970. There are 134,774 days (or 11,644,473,600 seconds) between these dates.

Developer of http://www.decloaked.com and http://sourceforge.net/projects/pykb/