Convert Windows SYSTEMTIME or FILETIME to javascript time
01 | // |
02 | // Convert Windows SYSTEMTIME or FILETIME to javascript time |
03 | // 2003 Glenn Slayden |
04 | // |
05 | #include "windows.h" |
06 |
07 | // ... |
08 |
09 | SYSTEMTIME st; |
10 | GetLocalTime(&st); |
11 | FILETIME ft; |
12 | SystemTimeToFileTime(&st,&ft); |
13 |
14 | __int64 jsTime = (*(__int64 *)&ft / 10000) - 11644448400000; |