1 #ifndef _TIME_H 2 #define _TIME_H 3 4 typedef unsigned long time_t; 5 6 struct tm { 7 int tm_sec; /* seconds */ 8 int tm_min; /* minutes */ 9 int tm_hour; /* hours */ 10 int tm_mday; /* day of the month */ 11 int tm_mon; /* month */ 12 int tm_year; /* year */ 13 int tm_wday; /* day of the week */ 14 int tm_yday; /* day in the year */ 15 int tm_isdst; /* daylight saving time */ 16 }; 17 18 extern time_t time ( time_t *t ); 19 20 extern time_t mktime ( struct tm *tm ); 21 22 #endif /* _TIME_H */ 23