Convert Windows SYSTEMTIME or FILETIME to javascript time

//
// Convert Windows SYSTEMTIME or FILETIME to javascript time
// 2003 Glenn Slayden
//
#include "windows.h"

// ...

SYSTEMTIME st;
GetLocalTime(&st);
FILETIME ft;
SystemTimeToFileTime(&st,&ft);

__int64 jsTime = (*(__int64 *)&ft / 10000) - 11644448400000;