home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/h/RCS/time,v $
- * $Date: 1996/10/30 21:58:58 $
- * $Revision: 1.2 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: time,v $
- * Revision 1.2 1996/10/30 21:58:58 unixlib
- * Massive changes made by Nick Burret and Peter Burwood.
- *
- * Revision 1.1 1996/04/19 21:02:57 simon
- * Initial revision
- *
- ***************************************************************************/
-
- /* ANSI Standard 4.12: Date and Time <time.h>. */
-
- #ifndef __TIME_H
- #define __TIME_H
-
- #ifndef __STDDEF_H
- #include <stddef.h>
- #endif
- #ifndef __UNIXLIB_TYPES_H
- #include <unixlib/types.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #define CLK_TCK 100
- #define CLOCKS_PER_SEC 100
-
- typedef long int clock_t;
- typedef __time_t time_t;
-
- 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 int timezone; /* same as tm_gmtoff above */
- extern struct tm __tz[1];
-
- /* POSIX extensions. */
- extern void tzset(void);
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-