1 #ifndef TIME_H
2 #define TIME_H
3
4
5
6
7
8
9
10
11 struct tm {
12 int tm_sec;
13 int tm_min;
14 int tm_hour;
15 int tm_mday;
16 int tm_mon;
17 int tm_year;
18 int tm_wday;
19 int tm_yday;
20 int tm_isdst;
21 };
22
23 typedef unsigned long time_t;
24
25 extern struct tm * localtime(const time_t *_tod);
26 extern struct tm * get_localtime();
27
28 struct utimbuf {
29 unsigned long actime;
30 unsigned long modtime;
31 };
32
33 extern int utime(const char *file, struct utimbuf *newTimes);
34 extern unsigned long time(unsigned long *timer);
35 extern long strftime(char *s, unsigned long maxsize, const char *format, const struct tm *timp);
36 extern time_t mktime(struct tm *timp);
37
38
39
40 #endif