1 
2 #ifndef __TIME_H__
3 #define __TIME_H__
4 
5 #include <sys/timespec.h>
6 
7 struct tm {
8     int		tm_sec;
9     int		tm_min;
10     int		tm_hour;
11     int		tm_mday;
12     int		tm_mon;
13     int		tm_year;
14     int		tm_wday;
15     int		tm_yday;
16     int		tm_isdst;
17 };
18 
19 time_t time(time_t *t);
20 char *asctime_r(const struct tm *tm, char *buf);
21 char *asctime(const struct tm *tm);
22 char *ctime_r(const time_t *timep, char *buf);
23 char *ctime(const time_t *timep);
24 struct tm *gmtime(const time_t *timep);
25 struct tm *gmtime_r(const time_t *timep, struct tm *result);
26 struct tm *localtime(const time_t *timep);
27 struct tm *localtime_r(const time_t *timep, struct tm *result);
28 time_t mktime(struct tm *tm);
29 
30 #endif /* __TIME_H__ */
31 
32