aboutsummaryrefslogtreecommitdiff
path: root/src/include/time.h
blob: 6ea927c3250650560cdec4ae59b03c0cb8bd94c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _TIME_H
#define _TIME_H

typedef unsigned long time_t;

struct tm {
	int tm_sec;	/* seconds */
	int tm_min;	/* minutes */
	int tm_hour;	/* hours */
	int tm_mday;	/* day of the month */
	int tm_mon;	/* month */
	int tm_year;	/* year */
	int tm_wday;	/* day of the week */
	int tm_yday;	/* day in the year */
	int tm_isdst;	/* daylight saving time */
};

extern time_t time ( time_t *t );

extern time_t mktime ( struct tm *tm );

#endif /* _TIME_H */