00001 #ifndef __WINCE_TIME_H__
00002 #define __WINCE_TIME_H__
00003
00004 #ifndef _TIME_T_DEFINED
00005 typedef unsigned time_t;
00006 #define _TIME_T_DEFINED
00007 #endif
00008
00009 #include <tchar.h>
00010 #ifndef _TM_DEFINED
00011 struct tm {
00012 int tm_sec;
00013 int tm_min;
00014 int tm_hour;
00015 int tm_mday;
00016 int tm_mon;
00017 int tm_year;
00018 int tm_wday;
00019 int tm_yday;
00020 int tm_isdst;
00021 };
00022 #define _TM_DEFINED
00023 #endif
00024
00025 #define _CLOCALECP CP_ACP
00026
00027 #define _DAY_SEC (24L * 60L * 60L)
00028
00029 #define _YEAR_SEC (365L * _DAY_SEC)
00030
00031 #define _FOUR_YEAR_SEC (1461L * _DAY_SEC)
00032
00033 #define _DEC_SEC 315532800L
00034
00035 #define _BASE_YEAR 70L
00036
00037 #define _BASE_DOW 4
00038
00039 #define _LEAP_YEAR_ADJUST 17L
00040
00041 #define _MAX_YEAR 138L
00042
00043
00044
00045
00046 #define DAY_MILLISEC (24L * 60L * 60L * 1000L)
00047
00048
00049
00050
00051
00052 #define IS_LEAP_YEAR(year) ( (year & 3) == 0 )
00053
00054
00055
00056
00057 typedef struct {
00058 int yr;
00059 int yd;
00060 long ms;
00061 } transitiondate;
00062
00063
00064
00065 _CRTIMP extern int _daylight;
00066
00067
00068 _CRTIMP extern long _dstbias;
00069
00070
00071 _CRTIMP extern long _timezone;
00072
00073
00074 _CRTIMP extern char * _tzname[2];
00075
00076
00077
00078 time_t __cdecl time(time_t *);
00079 time_t __cdecl mktime(struct tm *);
00080 struct tm * __cdecl localtime(const time_t *);
00081 _CRTIMP struct tm * __cdecl gmtime(const time_t *);
00082 #ifndef wcsftime
00083 size_t __cdecl wcsftime(wchar_t *, size_t, const wchar_t *,
00084 const struct tm *);
00085 #endif
00086
00087 #endif