2 * time.h - date and time
4 /* $Id: time.h,v 1.9 1994/06/24 11:41:32 ceriel Exp $ */
9 #define NULL ((void *)0)
12 #define CLOCKS_PER_SEC 1000000 /* ticks per second */
14 #define CLOCKS_PER_SEC 60
19 typedef unsigned int size_t; /* type returned by sizeof */
24 typedef unsigned long time_t; /* type returned by TOD clock */
27 typedef unsigned long clock_t; /* type returned by real time clock */
30 int tm_sec; /* seconds after the minute - [0, 59] */
31 int tm_min; /* minutes after the hour - [0, 59] */
32 int tm_hour; /* hours since midnight - [0, 23] */
33 int tm_mday; /* day of the month - [1, 31] */
34 int tm_mon; /* months since January - [0, 11] */
35 int tm_year; /* years since 1900 */
36 int tm_wday; /* days since Sunday - [0, 6] */
37 int tm_yday; /* days since January 1 - [0, 365] */
38 int tm_isdst; /* Daylight Saving Time flag */
42 double difftime(time_t _time1, time_t _time0);
43 time_t mktime(struct tm *_timeptr);
44 time_t time(time_t *_timeptr);
45 char *asctime(const struct tm *_timeptr);
46 char *ctime(const time_t *_timer);
47 struct tm *gmtime(const time_t *_timer);
48 struct tm *localtime(const time_t *_timer);
49 size_t strftime(char *_s, size_t _maxsize,
51 const struct tm *_timeptr);
53 #if defined(__USG) || defined(_POSIX_SOURCE)
60 extern char *tzname[2];
62 #endif /* __USG || _POSIX_SOURCE */