Main Page   Class Hierarchy   Compound List   File List   Compound Members  

wince_time.h

00001 #ifndef __WINCE_TIME_H__
00002 #define __WINCE_TIME_H__
00003 
00004 #ifndef _TIME_T_DEFINED
00005 typedef unsigned time_t;        /* time value */
00006 #define _TIME_T_DEFINED     /* avoid multiple def's of time_t */
00007 #endif
00008 
00009 #include <tchar.h>
00010 #ifndef _TM_DEFINED
00011 struct tm {
00012         int tm_sec;     /* seconds after the minute - [0,59] */
00013         int tm_min;     /* minutes after the hour - [0,59] */
00014         int tm_hour;    /* hours since midnight - [0,23] */
00015         int tm_mday;    /* day of the month - [1,31] */
00016         int tm_mon;     /* months since January - [0,11] */
00017         int tm_year;    /* years since 1900 */
00018         int tm_wday;    /* days since Sunday - [0,6] */
00019         int tm_yday;    /* days since January 1 - [0,365] */
00020         int tm_isdst;   /* daylight savings time flag */
00021         };
00022 #define _TM_DEFINED
00023 #endif
00024 
00025 #define _CLOCALECP      CP_ACP  /* "C" locale Code page */
00026 
00027 #define _DAY_SEC           (24L * 60L * 60L)    /* secs in a day */
00028 
00029 #define _YEAR_SEC          (365L * _DAY_SEC)    /* secs in a year */
00030 
00031 #define _FOUR_YEAR_SEC     (1461L * _DAY_SEC)   /* secs in a 4 year interval */
00032 
00033 #define _DEC_SEC           315532800L           /* secs in 1970-1979 */
00034 
00035 #define _BASE_YEAR         70L                  /* 1970 is the base year */
00036 
00037 #define _BASE_DOW          4                    /* 01-01-70 was a Thursday */
00038 
00039 #define _LEAP_YEAR_ADJUST  17L                  /* Leap years 1900 - 1970 */
00040 
00041 #define _MAX_YEAR          138L                 /* 2038 is the max year */
00042 
00043 /*
00044  * Number of milliseconds in one day
00045  */
00046 #define DAY_MILLISEC    (24L * 60L * 60L * 1000L)
00047 
00048 /*
00049  * The macro below is valid for years between 1901 and 2099, which easily
00050  * includes all years representable by the current implementation of time_t.
00051  */
00052 #define IS_LEAP_YEAR(year)  ( (year & 3) == 0 )
00053 
00054 /*
00055  * Structure used to represent DST transition date/times.
00056  */
00057 typedef struct {
00058         int  yr;        /* year of interest */
00059         int  yd;        /* day of year */
00060         long ms;        /* milli-seconds in the day */
00061 } transitiondate;
00062 
00063 
00064 /* non-zero if daylight savings time is used */
00065 _CRTIMP extern int _daylight;
00066 
00067 /* offset for Daylight Saving Time */
00068 _CRTIMP extern long _dstbias;
00069 
00070 /* difference in seconds between GMT and local time */
00071 _CRTIMP extern long _timezone;
00072 
00073 /* standard/daylight savings time zone names */
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

Generated on Mon Oct 23 13:23:58 2006 for FastDB by doxygen1.2.18