STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
time.h
Go to the documentation of this file.
1 /***
2 *time.h - definitions/declarations for time routines
3 *
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 * This file has declarations of time routines and defines
8 * the structure returned by the localtime and gmtime routines and
9 * used by asctime.
10 * [ANSI/System V]
11 *
12 * [Public]
13 *
14 ****/
15 
16 #pragma once
17 
18 #ifndef _INC_TIME
19 #define _INC_TIME
20 
21 #include <crtdefs.h>
22 
23 #if !defined (_WIN32)
24 #error ERROR: Only Win32 target supported!
25 #endif /* !defined (_WIN32) */
26 
27 
28 /*
29  * Currently, all MS C compilers for Win32 platforms default to 8 byte
30  * alignment.
31  */
32 #pragma pack(push,_CRT_PACKING)
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37 
38 #ifdef _CRTBLD
39 #include <cruntime.h>
40 #endif /* _CRTBLD */
41 
42 #if !defined (_W64)
43 #if !defined (__midl) && (defined (_X86_) || defined (_M_IX86))
44 #define _W64 __w64
45 #else /* !defined (__midl) && (defined (_X86_) || defined (_M_IX86)) */
46 #define _W64
47 #endif /* !defined (__midl) && (defined (_X86_) || defined (_M_IX86)) */
48 #endif /* !defined (_W64) */
49 
50 /* Define _CRTIMP */
51 
52 #ifndef _CRTIMP
53 #if defined(CRTDLL) && defined(_CRTBLD)
54 #define _CRTIMP __declspec(dllexport)
55 #else /* defined(CRTDLL) && defined(_CRTBLD) */
56 #ifdef _DLL
57 #define _CRTIMP __declspec(dllimport)
58 #else /* _DLL */
59 #define _CRTIMP
60 #endif /* _DLL */
61 #endif /* defined(CRTDLL) && defined(_CRTBLD) */
62 #endif /* _CRTIMP */
63 
64 #ifndef _WCHAR_T_DEFINED
65 typedef unsigned short wchar_t;
66 #define _WCHAR_T_DEFINED
67 #endif /* _WCHAR_T_DEFINED */
68 
69 #ifndef _TIME32_T_DEFINED
70 typedef _W64 long __time32_t; /* 32-bit time value */
71 #define _TIME32_T_DEFINED
72 #endif /* _TIME32_T_DEFINED */
73 
74 #ifndef _TIME64_T_DEFINED
75 typedef __int64 __time64_t; /* 64-bit time value */
76 #define _TIME64_T_DEFINED
77 #endif /* _TIME64_T_DEFINED */
78 
79 #ifndef _TIME_T_DEFINED
80 #ifdef _USE_32BIT_TIME_T
81 typedef __time32_t time_t; /* time value */
82 #else /* _USE_32BIT_TIME_T */
83 typedef __time64_t time_t; /* time value */
84 #endif /* _USE_32BIT_TIME_T */
85 #define _TIME_T_DEFINED /* avoid multiple def's of time_t */
86 #endif /* _TIME_T_DEFINED */
87 
88 #ifndef _CLOCK_T_DEFINED
89 typedef long clock_t;
90 #define _CLOCK_T_DEFINED
91 #endif /* _CLOCK_T_DEFINED */
92 
93 #ifndef _SIZE_T_DEFINED
94 #ifdef _WIN64
95 typedef unsigned __int64 size_t;
96 #else /* _WIN64 */
97 typedef _W64 unsigned int size_t;
98 #endif /* _WIN64 */
99 #define _SIZE_T_DEFINED
100 #endif /* _SIZE_T_DEFINED */
101 
102 /* Define NULL pointer value */
103 #ifndef NULL
104 #ifdef __cplusplus
105 #define NULL 0
106 #else /* __cplusplus */
107 #define NULL ((void *)0)
108 #endif /* __cplusplus */
109 #endif /* NULL */
110 
111 
112 #ifndef _TM_DEFINED
113 struct tm {
114  int tm_sec; /* seconds after the minute - [0,59] */
115  int tm_min; /* minutes after the hour - [0,59] */
116  int tm_hour; /* hours since midnight - [0,23] */
117  int tm_mday; /* day of the month - [1,31] */
118  int tm_mon; /* months since January - [0,11] */
119  int tm_year; /* years since 1900 */
120  int tm_wday; /* days since Sunday - [0,6] */
121  int tm_yday; /* days since January 1 - [0,365] */
122  int tm_isdst; /* daylight savings time flag */
123  };
124 #define _TM_DEFINED
125 #endif /* _TM_DEFINED */
126 
127 
128 /* Clock ticks macro - ANSI version */
129 
130 #define CLOCKS_PER_SEC 1000
131 
132 
133 /* Extern declarations for the global variables used by the ctime family of
134  * routines.
135  */
136 #ifdef _CRTBLD
137 #if defined (_DLL) && defined (_M_IX86)
138 /* Retained for compatibility with VC++ 5.0 and earlier versions */
139 _CRTIMP int * __cdecl __p__daylight(void);
140 _CRTIMP long * __cdecl __p__dstbias(void);
141 _CRTIMP long * __cdecl __p__timezone(void);
142 _CRTIMP char ** __cdecl __p__tzname(void);
143 #endif /* defined (_DLL) && defined (_M_IX86) */
144 #endif /* _CRTBLD */
145 
146 /* non-zero if daylight savings time is used */
148 #define _daylight (*__daylight())
149 
150 /* offset for Daylight Saving Time */
152 #define _dstbias (*__dstbias())
153 
154 /* difference in seconds between GMT and local time */
156 #define _timezone (*__timezone())
157 
158 /* standard/daylight savings time zone names */
160 #define _tzname (__tzname())
161 
162 _CRTIMP errno_t __cdecl _get_daylight(_Out_ int * _Daylight);
163 _CRTIMP errno_t __cdecl _get_dstbias(_Out_ long * _Daylight_savings_bias);
164 _CRTIMP errno_t __cdecl _get_timezone(_Out_ long * _Timezone);
165 _CRTIMP errno_t __cdecl _get_tzname(_Out_ size_t *_ReturnValue, _Out_writes_z_(_SizeInBytes) char *_Buffer, _In_ size_t _SizeInBytes, _In_ int _Index);
166 
167 #ifdef _CRTBLD
168 _DEFINE_SET_FUNCTION(_set_daylight, int, _daylight)
169 _DEFINE_SET_FUNCTION(_set_dstbias, long, _dstbias)
170 _DEFINE_SET_FUNCTION(_set_timezone, long, _timezone)
171 #endif /* _CRTBLD */
172 
173 /* Function prototypes */
174 _Check_return_ _CRT_INSECURE_DEPRECATE(asctime_s) _CRTIMP char * __cdecl asctime(_In_ const struct tm * _Tm);
175 #if __STDC_WANT_SECURE_LIB__
177 #endif /* __STDC_WANT_SECURE_LIB__ */
178 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, asctime_s, _Post_readable_size_(26) char, _Buffer, _In_ const struct tm *, _Time)
179 
180 _CRT_INSECURE_DEPRECATE(_ctime32_s) _CRTIMP char * __cdecl _ctime32(_In_ const __time32_t * _Time);
181 _CRTIMP errno_t __cdecl _ctime32_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(26) char *_Buf, _In_ size_t _SizeInBytes, _In_ const __time32_t *_Time);
182 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _ctime32_s, _Post_readable_size_(26) char, _Buffer, _In_ const __time32_t *, _Time)
183 
184 _Check_return_ _CRTIMP clock_t __cdecl clock(void);
185 _CRTIMP double __cdecl _difftime32(_In_ __time32_t _Time1, _In_ __time32_t _Time2);
186 
187 _Check_return_ _CRT_INSECURE_DEPRECATE(_gmtime32_s) _CRTIMP struct tm * __cdecl _gmtime32(_In_ const __time32_t * _Time);
188 _Check_return_wat_ _CRTIMP errno_t __cdecl _gmtime32_s(_In_ struct tm *_Tm, _In_ const __time32_t * _Time);
189 
190 _CRT_INSECURE_DEPRECATE(_localtime32_s) _CRTIMP struct tm * __cdecl _localtime32(_In_ const __time32_t * _Time);
191 _CRTIMP errno_t __cdecl _localtime32_s(_Out_ struct tm *_Tm, _In_ const __time32_t * _Time);
192 
193 _CRTIMP size_t __cdecl strftime(_Out_writes_z_(_SizeInBytes) char * _Buf, _In_ size_t _SizeInBytes, _In_z_ _Printf_format_string_ const char * _Format, _In_ const struct tm * _Tm);
194 _CRTIMP size_t __cdecl _strftime_l(_Pre_notnull_ _Post_z_ char *_Buf, _In_ size_t _Max_size, _In_z_ _Printf_format_string_ const char * _Format, _In_ const struct tm *_Tm, _In_opt_ _locale_t _Locale);
195 
196 _Check_return_wat_ _CRTIMP errno_t __cdecl _strdate_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_ size_t _SizeInBytes);
199 
200 _Check_return_wat_ _CRTIMP errno_t __cdecl _strtime_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf , _In_ size_t _SizeInBytes);
202 __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(char *, __RETURN_POLICY_DST, _CRTIMP, _strtime, _Out_writes_z_(9), char, _Buffer)
203 
204 _CRTIMP __time32_t __cdecl _time32(_Out_opt_ __time32_t * _Time);
205 _CRTIMP __time32_t __cdecl _mktime32(_Inout_ struct tm * _Tm);
206 _CRTIMP __time32_t __cdecl _mkgmtime32(_Inout_ struct tm * _Tm);
207 
208 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
209 
210 _CRTIMP void __cdecl _tzset(void);
211 
212 #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
213 
214 _Check_return_ _CRTIMP double __cdecl _difftime64(_In_ __time64_t _Time1, _In_ __time64_t _Time2);
215 _CRT_INSECURE_DEPRECATE(_ctime64_s) _CRTIMP char * __cdecl _ctime64(_In_ const __time64_t * _Time);
216 _CRTIMP errno_t __cdecl _ctime64_s(_Out_writes_z_(_SizeInBytes) char *_Buf, _In_ size_t _SizeInBytes, _In_ const __time64_t * _Time);
217 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _ctime64_s, char, _Buffer, _In_ const __time64_t *, _Time)
218 
219 _CRT_INSECURE_DEPRECATE(_gmtime64_s) _CRTIMP struct tm * __cdecl _gmtime64(_In_ const __time64_t * _Time);
220 _CRTIMP errno_t __cdecl _gmtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time);
221 
222 _CRT_INSECURE_DEPRECATE(_localtime64_s) _CRTIMP struct tm * __cdecl _localtime64(_In_ const __time64_t * _Time);
223 _CRTIMP errno_t __cdecl _localtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time);
224 
225 _CRTIMP __time64_t __cdecl _mktime64(_Inout_ struct tm * _Tm);
226 _CRTIMP __time64_t __cdecl _mkgmtime64(_Inout_ struct tm * _Tm);
227 _CRTIMP __time64_t __cdecl _time64(_Out_opt_ __time64_t * _Time);
228 
229 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
230 /* The Win32 API GetLocalTime and SetLocalTime should be used instead. */
231 _CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _getsystime(_Out_ struct tm * _Tm);
232 _CRT_OBSOLETE(SetLocalTime) unsigned __cdecl _setsystime(_In_ struct tm * _Tm, unsigned _MilliSec);
233 #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
234 
235 
236 #ifndef _SIZE_T_DEFINED
237 typedef unsigned int size_t;
238 #define _SIZE_T_DEFINED
239 #endif /* _SIZE_T_DEFINED */
240 
241 #ifndef _WTIME_DEFINED
242 
243 /* wide function prototypes, also declared in wchar.h */
244 
245 _CRT_INSECURE_DEPRECATE(_wasctime_s) _CRTIMP wchar_t * __cdecl _wasctime(_In_ const struct tm * _Tm);
246 _CRTIMP errno_t __cdecl _wasctime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const struct tm * _Tm);
247 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _wasctime_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ const struct tm *, _Time)
248 
249 _CRT_INSECURE_DEPRECATE(_wctime32_s) _CRTIMP wchar_t * __cdecl _wctime32(_In_ const __time32_t *_Time);
250 _CRTIMP errno_t __cdecl _wctime32_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t* _Buf, _In_ size_t _SizeInWords, _In_ const __time32_t * _Time);
251 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _wctime32_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ const __time32_t *, _Time)
252 
253 _CRTIMP size_t __cdecl wcsftime(_Out_writes_z_(_SizeInWords) wchar_t * _Buf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t * _Format, _In_ const struct tm * _Tm);
254 _CRTIMP size_t __cdecl _wcsftime_l(_Out_writes_z_(_SizeInWords) wchar_t * _Buf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_ const struct tm *_Tm, _In_opt_ _locale_t _Locale);
255 
256 _CRTIMP errno_t __cdecl _wstrdate_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t * _Buf, _In_ size_t _SizeInWords);
258 __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(wchar_t *, __RETURN_POLICY_DST, _CRTIMP, _wstrdate, _Out_writes_z_(9), wchar_t, _Buffer)
259 
260 _CRTIMP errno_t __cdecl _wstrtime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t * _Buf, _In_ size_t _SizeInWords);
262 __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(wchar_t *, __RETURN_POLICY_DST, _CRTIMP, _wstrtime, _Out_writes_z_(9), wchar_t, _Buffer)
263 
264 _CRT_INSECURE_DEPRECATE(_wctime64_s) _CRTIMP wchar_t * __cdecl _wctime64(_In_ const __time64_t * _Time);
265 _CRTIMP errno_t __cdecl _wctime64_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t* _Buf, _In_ size_t _SizeInWords, _In_ const __time64_t *_Time);
266 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, _wctime64_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ const __time64_t *, _Time)
267 
268 #if !defined (RC_INVOKED) && !defined (__midl)
269 #include <wtime.inl>
270 #endif /* !defined (RC_INVOKED) && !defined (__midl) */
271 
272 #define _WTIME_DEFINED
273 #endif /* _WTIME_DEFINED */
274 
275 #if !defined (RC_INVOKED) && !defined (__midl)
276 #include <time.inl>
277 #endif /* !defined (RC_INVOKED) && !defined (__midl) */
278 
279 #if !__STDC__
280 
281 /* Non-ANSI names for compatibility */
282 
283 #define CLK_TCK CLOCKS_PER_SEC
284 
285 /*
286 daylight, timezone, and tzname are not available under /clr:pure.
287 Please use _daylight, _timezone, and _tzname or
288 _get_daylight, _get_timezone, and _get_tzname instead.
289 */
290 #if !defined (_M_CEE_PURE)
291 _CRT_INSECURE_DEPRECATE_GLOBALS(_get_daylight) _CRTIMP extern int daylight;
292 _CRT_INSECURE_DEPRECATE_GLOBALS(_get_timezone) _CRTIMP extern long timezone;
293 _CRT_INSECURE_DEPRECATE_GLOBALS(_get_tzname) _CRTIMP extern char * tzname[2];
294 #endif /* !defined (_M_CEE_PURE) */
295 
296 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
297 _CRT_NONSTDC_DEPRECATE(_tzset) _CRTIMP void __cdecl tzset(void);
298 #endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
299 
300 #endif /* !__STDC__ */
301 
302 
303 #ifdef __cplusplus
304 }
305 #endif /* __cplusplus */
306 
307 #pragma pack(pop)
308 
309 #endif /* _INC_TIME */
#define _Out_
Definition: sal.h:351
int tm_min
Definition: time.h:115
#define _Out_opt_
Definition: sal.h:352
#define __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_ReturnType, _ReturnPolicy, _DeclSpec, _FuncName, _SalAttributeDst, _DstType, _Dst)
Definition: crtdefs.h:861
__time64_t time_t
Definition: crtdefs.h:580
#define _dstbias
Definition: time.h:152
#define _CRTIMP
Definition: crtdefs.h:23
_Check_return_wat_ _CRTIMP errno_t __cdecl _strdate_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_ size_t _SizeInBytes)
_CRTIMP errno_t __cdecl _get_timezone(_Out_ long *_Timezone)
Definition: regex:1520
_Check_return_ _CRT_INSECURE_DEPRECATE(asctime_s) _CRTIMP char *__cdecl asctime(_In_ const struct tm *_Tm)
#define _Out_writes_z_(size)
Definition: sal.h:358
_Check_return_ _CRT_INSECURE_DEPRECATE_GLOBALS(_get_daylight) _CRTIMP int *__cdecl __daylight(void)
_W64 unsigned int size_t
Definition: crtdefs.h:496
_CRTIMP errno_t __cdecl _wctime32_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const __time32_t *_Time)
int tm_mday
Definition: time.h:117
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(_ReturnType, _FuncName, _DstType, _Dst)
Definition: crtdefs.h:845
_Check_return_wat_ _CRTIMP errno_t __cdecl asctime_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(26) char *_Buf, _In_ size_t _SizeInBytes, _In_ const struct tm *_Tm)
int tm_year
Definition: time.h:119
_CRTIMP size_t __cdecl strftime(_Out_writes_z_(_SizeInBytes) char *_Buf, _In_ size_t _SizeInBytes, _In_z_ _Printf_format_string_ const char *_Format, _In_ const struct tm *_Tm)
_CRTIMP size_t __cdecl _wcsftime_l(_Out_writes_z_(_SizeInWords) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_ const struct tm *_Tm, _In_opt_ _locale_t _Locale)
_CRTIMP errno_t __cdecl _localtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time)
_Check_return_wat_ _CRTIMP errno_t __cdecl _strtime_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(9) char *_Buf, _In_ size_t _SizeInBytes)
_Check_return_ _CRTIMP clock_t __cdecl clock(void)
_CRTIMP size_t __cdecl _strftime_l(_Pre_notnull_ _Post_z_ char *_Buf, _In_ size_t _Max_size, _In_z_ _Printf_format_string_ const char *_Format, _In_ const struct tm *_Tm, _In_opt_ _locale_t _Locale)
_CRTIMP errno_t __cdecl _get_tzname(_Out_ size_t *_ReturnValue, _Out_writes_z_(_SizeInBytes) char *_Buffer, _In_ size_t _SizeInBytes, _In_ int _Index)
_W64 long __time32_t
Definition: crtdefs.h:567
#define _Check_return_
Definition: sal.h:563
_CRTIMP errno_t __cdecl _gmtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time)
#define _In_z_
Definition: sal.h:319
#define _In_
Definition: sal.h:314
int tm_mon
Definition: time.h:118
_CRTIMP errno_t __cdecl _get_daylight(_Out_ int *_Daylight)
_CRTIMP errno_t __cdecl _get_dstbias(_Out_ long *_Daylight_savings_bias)
_Check_return_ _In_z_ const char * _Locale
Definition: locale.h:117
_CRTIMP __time64_t __cdecl _time64(_Out_opt_ __time64_t *_Time)
unsigned short wchar_t
Definition: crtdefs.h:536
#define _In_opt_
Definition: sal.h:315
long clock_t
Definition: time.h:89
_CRTIMP errno_t __cdecl _wstrtime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_ size_t _SizeInWords)
_CRTIMP double __cdecl _difftime32(_In_ __time32_t _Time1, _In_ __time32_t _Time2)
_CRTIMP errno_t __cdecl _wctime64_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const __time64_t *_Time)
_CRTIMP __time32_t __cdecl _mktime32(_Inout_ struct tm *_Tm)
#define __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(_ReturnType, _FuncName, _DstType, _Dst, _TType1, _TArg1)
Definition: crtdefs.h:846
_Check_return_ _CRTIMP double __cdecl _difftime64(_In_ __time64_t _Time1, _In_ __time64_t _Time2)
#define _Printf_format_string_
Definition: sal.h:567
_CRT_OBSOLETE(GetLocalTime) unsigned __cdecl _getsystime(_Out_ struct tm *_Tm)
_CRTIMP size_t __cdecl wcsftime(_Out_writes_z_(_SizeInWords) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_z_ _Printf_format_string_ const wchar_t *_Format, _In_ const struct tm *_Tm)
int errno_t
Definition: crtdefs.h:563
_CRTIMP errno_t __cdecl _localtime32_s(_Out_ struct tm *_Tm, _In_ const __time32_t *_Time)
Definition: time.h:113
#define _Deref_ret_z_
Definition: sal.h:1212
#define _W64
Definition: crtdefs.h:100
_CRTIMP __time32_t __cdecl _time32(_Out_opt_ __time32_t *_Time)
_CRTIMP errno_t __cdecl _ctime32_s(_Out_writes_(_SizeInBytes) _Post_readable_size_(26) char *_Buf, _In_ size_t _SizeInBytes, _In_ const __time32_t *_Time)
int tm_wday
Definition: time.h:120
#define __RETURN_POLICY_DST(_FunctionCall)
Definition: crtdefs.h:1928
_CRTIMP __time64_t __cdecl _mktime64(_Inout_ struct tm *_Tm)
int tm_yday
Definition: time.h:121
unsigned _MilliSec
Definition: time.h:232
#define _Out_writes_(size)
Definition: sal.h:354
#define _Post_readable_size_(size)
Definition: sal.h:655
#define _Check_return_wat_
Definition: crtdefs.h:2128
_CRTIMP __time32_t __cdecl _mkgmtime32(_Inout_ struct tm *_Tm)
#define _daylight
Definition: time.h:148
_CRTIMP void __cdecl _tzset(void)
_Check_return_ _In_z_ _Scanf_format_string_ const char * _Format
Definition: stdio.h:230
_CRT_NONSTDC_DEPRECATE(_tzset) _CRTIMP void __cdecl tzset(void)
#define _Inout_
Definition: sal.h:384
_CRTIMP errno_t __cdecl _wasctime_s(_Out_writes_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buf, _In_ size_t _SizeInWords, _In_ const struct tm *_Tm)
int tm_sec
Definition: time.h:114
_CRTIMP __time64_t __cdecl _mkgmtime64(_Inout_ struct tm *_Tm)
_CRTIMP errno_t __cdecl _ctime64_s(_Out_writes_z_(_SizeInBytes) char *_Buf, _In_ size_t _SizeInBytes, _In_ const __time64_t *_Time)
__int64 __time64_t
Definition: crtdefs.h:572
int tm_hour
Definition: time.h:116
#define _Post_z_
Definition: sal.h:697
#define _timezone
Definition: time.h:156
#define _Pre_notnull_
Definition: sal.h:686
int tm_isdst
Definition: time.h:122
_Check_return_ _Ret_maybenull_z_ _In_ int _SizeInBytes
Definition: direct.h:130
Definition: crtdefs.h:2078
_Check_return_wat_ _CRTIMP errno_t __cdecl _gmtime32_s(_In_ struct tm *_Tm, _In_ const __time32_t *_Time)
_CRTIMP errno_t __cdecl _wstrdate_s(_Out_writes_(_SizeInWords) _Post_readable_size_(9) wchar_t *_Buf, _In_ size_t _SizeInWords)