For the record\game\0\last game key, the server sends back:
9817155 3780018076
Starcraft outputs: 10/26/2006 14:15 for the time last game was played, does anyone know how to convert the value into that time?
It's jsut a Filetime structure like in 0x50.
1st is the Hi, 2nd is the low. I think, it might be the other way around.
Same goes for Last Login, Account created, Last Logoff, etc...
Its just cuz they send them as strings.
~Hdx
Oh that makes sense, I tried that prior to posting but made a coding mistake so I thought it could be something else since I was receiving crap results. thx.
Uh... HDX how would you extract the date from the second filetime? The only one I (really) got so far, is the account logged. (it's in seconds). I already tried parsing the filetimes by using my system uptime function and it returned a far-off value. help :(
Quote from: brew on February 23, 2007, 08:59 PM
Uh... HDX how would you extract the date from the second filetime? The only one I (really) got so far, is the account logged. (it's in seconds). I already tried parsing the filetimes by using my system uptime function and it returned a far-off value. help :(
Put the data into a FILETIME struct then call FileTimeToSystemTime(FILETIME, SYSTEMTIME), look FileTimeToSystemTime up on MSDN.
This will work for converting a filetime to a date too, correct? (the first filetime)
Quote from: brew on February 23, 2007, 10:05 PM
This will work for converting a filetime to a date too, correct? (the first filetime)
Look into the SYSTEMTIME struct, http://msdn2.microsoft.com/en-us/library/ms724950.aspx (http://msdn2.microsoft.com/en-us/library/ms724950.aspx)
Ah. Thanks, shadow.