]> pd.if.org Git - zos/blob - include/time.h
add a readme with a public domain note
[zos] / include / time.h
1 #ifndef _SYS_TIME_H_
2 #define _SYS_TIME_H_ 1
3
4 /* we get to use the _ because we *are* the system header */
5
6 #include <sys/types.h>
7
8 struct tm {
9         int tm_sec;    /* seconds (0-60) */
10         int tm_min;    /* minutes (0-59) */
11         int tm_hour;   /* hours (0-23) */
12         int tm_mday;   /* day of the month (1-31) */
13         int tm_mon;    /* month (0-11) */
14         int tm_year;   /* year - 1900 */
15         int tm_wday;   /* day of the week (0-6, Sunday = 0) */
16         int tm_yday;   /* day in the year (0-365, 1 Jan = 0) */
17         int tm_isdst;  /* daylight saving time */
18 };
19
20 struct timespec {
21         time_t  tv_sec;
22         long    tv_nsec;
23 };
24
25 struct itimerspec {
26         struct timespec it_interval;
27         struct timespec it_value;
28 };
29
30 #endif