]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wince/time.h
convert COM arguments to wx lazily to improve performance and allow calling Invoke...
[wxWidgets.git] / include / wx / msw / wince / time.h
CommitLineData
1c193821
JS
1
2/*
3 * time.h
4 * Missing time functions and structures for use under WinCE
5 */
6
e09080ec
VZ
7#ifndef _WX_MSW_WINCE_TIME_H_
8#define _WX_MSW_WINCE_TIME_H_
1c193821 9
92bdf9f7
VZ
10#ifndef _TM_DEFINED
11
2f6ea0bc
VZ
12#define _TM_DEFINED
13
1c193821
JS
14struct tm {
15 int tm_sec; /* seconds after the minute - [0,59] */
16 int tm_min; /* minutes after the hour - [0,59] */
17 int tm_hour; /* hours since midnight - [0,23] */
18 int tm_mday; /* day of the month - [1,31] */
19 int tm_mon; /* months since January - [0,11] */
20 int tm_year; /* years since 1900 */
21 int tm_wday; /* days since Sunday - [0,6] */
22 int tm_yday; /* days since January 1 - [0,365] */
23 int tm_isdst; /* daylight savings time flag */
24 };
25
92bdf9f7
VZ
26extern "C"
27{
28
1c193821
JS
29time_t __cdecl time(time_t *);
30
31time_t __cdecl mktime(struct tm *);
32
e09080ec
VZ
33// VC8 CRT provides the other functions
34#if !defined(__VISUALC__) || (__VISUALC__ < 1400)
35
36struct tm * __cdecl localtime(const time_t *);
37
1c193821
JS
38struct tm * __cdecl gmtime(const time_t *);
39
40#define _tcsftime wcsftime
41
92bdf9f7
VZ
42size_t __cdecl wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);
43
1c193821
JS
44extern long timezone;
45
e09080ec
VZ
46#endif // !VC8
47
48}
49
ca1514b3 50#endif // !_TM_DEFINED
92bdf9f7 51
e09080ec 52#endif // _WX_MSW_WINCE_TIME_H_
1c193821 53