#include <precomp.h>
#include "bitsfixup.h"
Go to the source code of this file.
|
static int | g_monthdays [13] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365} |
|
◆ MAX_32BIT_TIME
#define MAX_32BIT_TIME 0xFFFFFFFFULL |
◆ _mkgmtime()
Definition at line 114 of file mktime.c.
115{
118}
__time64_t mktime_worker(struct tm *ptm, int utc)
◆ _mkgmtime32()
◆ _mkgmtime64()
◆ _mktime32()
◆ _mktime64()
◆ mktime()
◆ mktime_worker()
Definition at line 16 of file mktime.c.
17{
20 int mons, years, leapyears;
23
24
26 {
29 ptm->
tm_mon = 11 - (mons % 12);
30 }
32 {
36 }
37
38
40 {
41 return -1;
42 }
43
45
46
47 leapyears = (years + 1) / 4;
48
49
50 time = years * 365 + leapyears;
51
52
54
55
56 if (((years + 2) % 4) == 0)
57 {
59 {
61 }
62 }
63
65
68
71
74
76 {
77 return -1;
78 }
79
80
82 if (!ptm2)
83 {
84 return -1;
85 }
86 *ptm = *ptm2;
87
88
91 {
93 }
94
96}
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
struct tm * _gmtime64(const __time64_t *ptime)
static int g_monthdays[13]
#define TIME_ZONE_ID_INVALID
Referenced by _mkgmtime(), _mkgmtime32(), _mkgmtime64(), _mktime32(), _mktime64(), and mktime().
◆ g_monthdays
int g_monthdays[13] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365} |
|
static |