22#define DAYLIGHT_TIME 1
23#define STANDARD_TIME 0
24#define UNKNOWN_TIME -1
35template <
typename TimeType,
typename TimeBType>
44 tp->timezone =
static_cast<short>(
timezone / 60);
51 TimeType
const current_minutes_value =
static_cast<TimeType
>(system_time.
_scalar / 600000000ll);
56 if (tz_state == 0xFFFFFFFF)
81 tp->millitm =
static_cast<unsigned short>((system_time.
_scalar / 10000ll) % 1000ll);
89 return common_ftime_s<__time32_t>(
tp);
99 return common_ftime_s<__time64_t>(
tp);
VOID WINAPI __acrt_GetSystemTimePreciseAsFileTime(_Out_ LPFILETIME system_time)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
void __cdecl _ftime32(__timeb32 *const tp)
static errno_t __cdecl common_ftime_s(TimeBType *const tp)
static __time64_t elapsed_minutes_cache
errno_t __cdecl _ftime32_s(__timeb32 *const tp)
errno_t __cdecl _ftime64_s(__timeb64 *const tp)
void __cdecl _ftime64(__timeb64 *const tp)
#define _VALIDATE_RETURN_ERRCODE(expr, errorcode)
#define TIME_ZONE_ID_DAYLIGHT
_CRTIMP errno_t __cdecl _get_timezone(_Out_ long *_Timezone)
static TIME_ZONE_INFORMATION tz_info