📄 wince_time.h
字号:
#ifndef __WINCE_TIME_H__#define __WINCE_TIME_H__#ifndef _TIME_T_DEFINEDtypedef unsigned time_t; /* time value */#define _TIME_T_DEFINED /* avoid multiple def's of time_t */#endif#include <tchar.h>#ifndef _TM_DEFINEDstruct tm { int tm_sec; /* seconds after the minute - [0,59] */ int tm_min; /* minutes after the hour - [0,59] */ int tm_hour; /* hours since midnight - [0,23] */ int tm_mday; /* day of the month - [1,31] */ int tm_mon; /* months since January - [0,11] */ int tm_year; /* years since 1900 */ int tm_wday; /* days since Sunday - [0,6] */ int tm_yday; /* days since January 1 - [0,365] */ int tm_isdst; /* daylight savings time flag */ };#define _TM_DEFINED#endif#define _CLOCALECP CP_ACP /* "C" locale Code page */#define _DAY_SEC (24L * 60L * 60L) /* secs in a day */#define _YEAR_SEC (365L * _DAY_SEC) /* secs in a year */#define _FOUR_YEAR_SEC (1461L * _DAY_SEC) /* secs in a 4 year interval */#define _DEC_SEC 315532800L /* secs in 1970-1979 */#define _BASE_YEAR 70L /* 1970 is the base year */#define _BASE_DOW 4 /* 01-01-70 was a Thursday */#define _LEAP_YEAR_ADJUST 17L /* Leap years 1900 - 1970 */#define _MAX_YEAR 138L /* 2038 is the max year *//* * Number of milliseconds in one day */#define DAY_MILLISEC (24L * 60L * 60L * 1000L)/* * The macro below is valid for years between 1901 and 2099, which easily * includes all years representable by the current implementation of time_t. */#define IS_LEAP_YEAR(year) ( (year & 3) == 0 )/* * Structure used to represent DST transition date/times. */typedef struct { int yr; /* year of interest */ int yd; /* day of year */ long ms; /* milli-seconds in the day */} transitiondate;/* non-zero if daylight savings time is used */_CRTIMP extern int _daylight;/* offset for Daylight Saving Time */_CRTIMP extern long _dstbias;/* difference in seconds between GMT and local time */_CRTIMP extern long _timezone;/* standard/daylight savings time zone names */_CRTIMP extern char * _tzname[2];time_t __cdecl time(time_t *);time_t __cdecl mktime(struct tm *);struct tm * __cdecl localtime(const time_t *);size_t __cdecl wcsftime(wchar_t *, size_t, const wchar_t *, const struct tm *);_CRTIMP struct tm * __cdecl gmtime(const time_t *);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -