1 //////////////////////////////////////////////////////
3 // VisualStudio 2005 PWLib Port,
7 //////////////////////////////////////////////////////
9 // (c) Yuriy Gorvitovskiy
10 // for Openh323, www.Openh323.org
14 // Definitions/declarations for time routines
24 #define _INC_TIME // for wce.h
32 int tm_sec
; /* seconds after the minute - [0,59] */
33 int tm_min
; /* minutes after the hour - [0,59] */
34 int tm_hour
; /* hours since midnight - [0,23] */
35 int tm_mday
; /* day of the month - [1,31] */
36 int tm_mon
; /* months since January - [0,11] */
37 int tm_year
; /* years since 1900 */
38 int tm_wday
; /* days since Sunday - [0,6] */
39 int tm_yday
; /* days since January 1 - [0,365] */
40 int tm_isdst
; /* daylight savings time flag */
48 #ifndef _CLOCK_T_DEFINED
50 #define _CLOCK_T_DEFINED
53 /* Clock ticks macro - ANSI version */
54 #define CLOCKS_PER_SEC 1000
56 /* Function prototypes */
57 #if _WIN32_WCE < 0x502
59 struct tm
* gmtime(const time_t* t
);
60 struct tm
* localtime(const time_t* t
);
61 time_t mktime(struct tm
* t
);
62 time_t time(time_t* t
);
63 #endif // _WIN32_WCE < 0x502
65 #if _WIN32_WCE < 0x501
69 const wchar_t *format
,
70 const struct tm
*timeptr
75 time_t __cdecl
FileTimeToTime(const struct _FILETIME FileTime
);
76 time_t __cdecl
SystemTimeToTime(const struct _SYSTEMTIME
* pSystemTime
);
78 time_t FileTimeToTime(const FILETIME FileTime
);
79 time_t SystemTimeToTime(const LPSYSTEMTIME pSystemTime
);
86 #endif /* _INC_TIME */