1 /* 2 * Copyright (c) 1989 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)time.h 5.4 (Berkeley) 06/01/90 8 */ 9 10 #include <sys/types.h> 11 12 struct tm { 13 int tm_sec; /* seconds after the minute [0-60] */ 14 int tm_min; /* minutes after the hour [0-59] */ 15 int tm_hour; /* hours since midnight [0-23] */ 16 int tm_mday; /* day of the month [1-31] */ 17 int tm_mon; /* months since January [0-11] */ 18 int tm_year; /* years since 1900 */ 19 int tm_wday; /* days since Sunday [0-6] */ 20 int tm_yday; /* days since January 1 [0-365] */ 21 int tm_isdst; /* Daylight Savings Time flag */ 22 long tm_gmtoff; /* offset from CUT in seconds */ 23 char *tm_zone; /* timezone abbreviation */ 24 }; 25 26 #ifdef __STDC__ 27 extern struct tm *gmtime(const time_t *); 28 extern struct tm *localtime(const time_t *); 29 extern time_t mktime(const struct tm *); 30 extern time_t time(time_t *); 31 extern double difftime(const time_t, const time_t); 32 extern char *asctime(const struct tm *); 33 extern char *ctime(const time_t *); 34 extern char *timezone(int , int); 35 extern void tzset(void); 36 extern void tzsetwall(void); 37 #else 38 extern struct tm *gmtime(); 39 extern struct tm *localtime(); 40 extern time_t mktime(); 41 extern time_t time(); 42 extern double difftime(); 43 extern char *asctime(); 44 extern char *ctime(); 45 extern char *timezone(); 46 extern void tzset(); 47 extern void tzsetwall(); 48 #endif 49