11#define MAX_32BIT_TIME 0xFFFFFFFFULL
13static int g_monthdays[13] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};
20 int mons, years, leapyears;
29 ptm->
tm_mon = 11 - (mons % 12);
47 leapyears = (years + 1) / 4;
50 time = years * 365 + leapyears;
56 if (((years + 2) % 4) == 0)
static DOUBLE utc(DOUBLE time, DateInstance *date)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
struct tm * _gmtime64(const __time64_t *ptime)
_CRTIMP time_t __cdecl mktime(struct tm *_Tm)
__time32_t _mkgmtime32(struct tm *ptm)
__time32_t _mktime32(struct tm *ptm)
__time64_t mktime_worker(struct tm *ptm, int utc)
time_t _mkgmtime(struct tm *ptm)
static int g_monthdays[13]
__time64_t _mkgmtime64(struct tm *ptm)
__time64_t _mktime64(struct tm *ptm)
#define TIME_ZONE_ID_INVALID