1 macro-constant NULL == 0
2 macro CLOCKS_PER_SEC {clock_t}
5 macro-int-constant TIME_UTC > 0
8 #if !defined ISO && !defined ISO99 && !defined XPG3 && !defined XPG4
11 element {struct timespec} time_t tv_sec
12 // Bug 16437: tv_nsec has wrong type.
13 xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
22 element {struct tm} int tm_sec
23 element {struct tm} int tm_min
24 element {struct tm} int tm_hour
25 element {struct tm} int tm_mday
26 element {struct tm} int tm_mon
27 element {struct tm} int tm_year
28 element {struct tm} int tm_wday
29 element {struct tm} int tm_yday
30 element {struct tm} int tm_isdst
32 function clock_t clock (void)
33 function double difftime (time_t, time_t)
34 function time_t mktime (struct tm*)
35 function time_t time (time_t*)
36 function {char*} asctime (const struct tm*)
37 function {char*} ctime (const time_t*)
38 function {struct tm*} gmtime (const time_t*)
39 function {struct tm*} localtime (const time_t*)
40 function size_t strftime (char*, size_t, const char*, const struct tm*)
42 function int timespec_get (struct timespec *, int)
45 #if !defined ISO && !defined ISO99 && !defined ISO11
46 # if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
49 # if !defined XPG3 && !defined XPG4
50 # if !defined POSIX && !defined UNIX98
51 constant CLOCK_PROCESS_CPUTIME_ID
52 constant CLOCK_THREAD_CPUTIME_ID
55 type {struct itimerspec}
57 element {struct itimerspec} {struct timespec} it_interval
58 element {struct itimerspec} {struct timespec} it_value
60 constant CLOCK_REALTIME
61 constant TIMER_ABSTIME
62 # if !defined POSIX && !defined UNIX98
63 constant CLOCK_MONOTONIC
70 # if defined XOPEN2K8 || defined POSIX2008
76 # if !defined XPG3 && !defined POSIX && !defined POSIX2008
77 variable int getdate_err
80 function {char*} asctime_r (const struct tm*, char*)
81 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
82 function int clock_getcpuclockid (pid_t, clockid_t*)
84 #if !defined XPG3 && !defined XPG4
85 function int clock_getres (clockid_t, struct timespec*)
86 function int clock_gettime (clockid_t, struct timespec*)
88 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
89 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
91 #if !defined XPG3 && !defined XPG4
92 function int clock_settime (clockid_t, const struct timespec*)
94 function {char*} ctime_r (const time_t*, char*)
95 # if !defined XPG3 && !defined POSIX && !defined POSIX2008
96 function {struct tm*} getdate (const char*)
98 function {struct tm*} gmtime_r (const time_t*, struct tm*)
99 function {struct tm*} localtime_r (const time_t*, struct tm*)
100 # if !defined XPG3 && !defined XPG4
101 function int nanosleep (const struct timespec*, struct timespec*)
103 # if defined XOPEN2K8 || defined POSIX2008
104 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
106 # if !defined POSIX && !defined POSIX2008
107 function {char*} strptime (const char*, const char*, struct tm*)
109 # if !defined XPG3 && !defined XPG4
110 function int timer_create (clockid_t, struct sigevent*, timer_t*)
111 function int timer_delete (timer_t)
112 function int timer_gettime (timer_t, struct itimerspec*)
113 function int timer_getoverrun (timer_t)
114 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
116 function void tzset (void)
118 # if !defined POSIX && !defined POSIX2008
119 variable int daylight
120 variable {long int} timezone
122 variable {char*} tzname [2]