nuclear@36: #ifndef _TIME_H_ nuclear@36: #define _TIME_H_ nuclear@36: nuclear@36: typedef long time_t; nuclear@36: nuclear@36: struct tm { nuclear@36: int tm_sec; nuclear@36: int tm_min; nuclear@36: int tm_hour; nuclear@36: int tm_mday; nuclear@36: int tm_mon; nuclear@36: int tm_year; nuclear@36: int tm_wday; nuclear@36: int tm_yday; nuclear@36: int tm_isdst; nuclear@36: }; nuclear@36: nuclear@37: time_t time(time_t *tp); nuclear@36: char *asctime(struct tm *tm); nuclear@37: char *asctime_r(struct tm *tm, char *buf); nuclear@37: nuclear@36: time_t mktime(struct tm *tm); nuclear@37: struct tm *gmtime(time_t *tp); nuclear@37: struct tm *gmtime_r(time_t *tp, struct tm *tm); nuclear@36: nuclear@36: /* non-standard helpers */ nuclear@36: int day_of_year(int year, int mon, int day); nuclear@36: nuclear@36: nuclear@36: #endif /* _TIME_H_ */