home *** CD-ROM | disk | FTP | other *** search
- /* time.h (c) Copyright 1990 H.Rogers */
-
- #ifndef __TIME_H
- #define __TIME_H
-
- #ifndef __SYS_TYPES_H
- #include <sys/types.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #define CLK_TCK 100
- #define CLOCKS_PER_SEC 100
-
- extern clock_t clock(void);
- extern time_t time(time_t *);
-
- struct tm
- {
- int tm_sec; /* seconds (0 - 59) */
- int tm_min; /* minutes (0 - 59) */
- int tm_hour; /* hours (0 - 23) */
- int tm_mday; /* day of month (1 - 31) */
- int tm_mon; /* month of year (0 - 11) */
- int tm_year; /* year - 1900 */
- int tm_wday; /* day of week (Sunday = 0) */
- int tm_yday; /* day of year (0 - 365) */
- int tm_isdst; /* 1 - DST in effect,0 - not,-1 - not known */
- int tm_gmtoff; /* offset west from GMT in seconds */
- char tm_zone[4]; /* abbreviation of timezone name */
- };
-
- extern char *asctime(const struct tm *);
- extern char *ctime(const time_t *);
- extern double difftime(time_t,time_t);
- extern struct tm *gmtime(const time_t *);
- extern struct tm *localtime(const time_t *);
- extern time_t mktime(struct tm *);
- extern size_t strftime(char *,size_t,const char *,const struct tm *);
-
- extern void tzset(void);
-
- extern int timezone; /* same as tm_gmtoff above */
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-