]>
Commit | Line | Data |
---|---|---|
1c193821 JS |
1 | |
2 | /* | |
3 | * time.h | |
4 | * Missing time functions and structures for use under WinCE | |
5 | */ | |
6 | ||
7 | #ifndef __WINCE_TIME_ | |
8 | #define __WINCE_TIME_ | |
9 | ||
92bdf9f7 VZ |
10 | #ifndef _TM_DEFINED |
11 | ||
1c193821 JS |
12 | struct tm { |
13 | int tm_sec; /* seconds after the minute - [0,59] */ | |
14 | int tm_min; /* minutes after the hour - [0,59] */ | |
15 | int tm_hour; /* hours since midnight - [0,23] */ | |
16 | int tm_mday; /* day of the month - [1,31] */ | |
17 | int tm_mon; /* months since January - [0,11] */ | |
18 | int tm_year; /* years since 1900 */ | |
19 | int tm_wday; /* days since Sunday - [0,6] */ | |
20 | int tm_yday; /* days since January 1 - [0,365] */ | |
21 | int tm_isdst; /* daylight savings time flag */ | |
22 | }; | |
23 | ||
92bdf9f7 VZ |
24 | extern "C" |
25 | { | |
26 | ||
1c193821 JS |
27 | struct tm * __cdecl localtime(const time_t *); |
28 | ||
29 | time_t __cdecl time(time_t *); | |
30 | ||
31 | time_t __cdecl mktime(struct tm *); | |
32 | ||
33 | struct tm * __cdecl gmtime(const time_t *); | |
34 | ||
35 | #define _tcsftime wcsftime | |
36 | ||
92bdf9f7 VZ |
37 | size_t __cdecl wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *); |
38 | ||
39 | } | |
1c193821 JS |
40 | |
41 | extern long timezone; | |
42 | ||
553d7089 JS |
43 | #endif |
44 | // old code | |
92bdf9f7 VZ |
45 | |
46 | #endif // __WINCE_TIME_ | |
1c193821 | 47 |