2 *time.h - definitions/declarations for time routines
4 * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
7 * This file has declarations of time routines and defines
8 * the structure returned by the localtime and gmtime routines and
12 *******************************************************************************/
15 #ifndef NO_EXT_KEYS /* extensions enabled */
18 #else /* extensions not enabled */
21 #endif /* NO_EXT_KEYS */
24 /* define the implementation defined time type */
26 #ifndef _TIME_T_DEFINED
27 typedef long time_t; /* time value */
28 #define _TIME_T_DEFINED /* avoid multiple def's of time_t */
31 #ifndef _CLOCK_T_DEFINED
33 #define _CLOCK_T_DEFINED
38 int tm_sec; /* seconds after the minute - [0,59] */
39 int tm_min; /* minutes after the hour - [0,59] */
40 int tm_hour; /* hours since midnight - [0,23] */
41 int tm_mday; /* day of the month - [1,31] */
42 int tm_mon; /* months since January - [0,11] */
43 int tm_year; /* years since 1900 */
44 int tm_wday; /* days since Sunday - [0,6] */
45 int tm_yday; /* days since January 1 - [0,365] */
46 int tm_isdst; /* daylight savings time flag */
54 /* extern declarations for the global variables used by the ctime family of
58 extern int _NEAR _CDECL daylight; /* non-zero if daylight savings time is used */
59 extern long _NEAR _CDECL timezone; /* difference in seconds between GMT and local time */
60 extern char * _NEAR _CDECL tzname[2]; /* standard/daylight savings time zone names */
63 /* function prototypes */
65 char * _CDECL asctime(const struct tm *);
66 char * _CDECL ctime(const time_t *);
67 clock_t _CDECL clock(void);
68 double _CDECL difftime(time_t, time_t);
69 struct tm * _CDECL gmtime(const time_t *);
70 struct tm * _CDECL localtime(const time_t *);
71 time_t _CDECL mktime(struct tm *);
72 char * _CDECL _strdate(char *);
73 char * _CDECL _strtime(char *);
74 time_t _CDECL time(time_t *);
75 void _CDECL tzset(void);