time.h¶
Source location¶
The main source for time functions is located at:
libc/src/time
Implementation Status¶
To check date and time functions enabled for Linux:
To check date and time functions enabled for Windows:
windows-aarch64 - to be added
To check date and time functions enabled for macOS:
To check date and time functions enabled for GPU:
To check date and time functions enabled for embedded system:
barebone-riscv32 - to be added
<Func> |
Linux |
Windows |
MacOS |
Embedded |
GPU |
||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x86_64 |
aarch64 |
aarch32 |
riscv64/riscv32 |
x86_64 |
aarch64 |
x86_64 |
aarch64 |
aarch64 |
aarch32 |
riscv32 |
AMD |
nVidia |
|
asctime |
✅ |
✅ |
✅ |
||||||||||
asctime_r |
✅ |
✅ |
✅ |
||||||||||
ctime |
✅ |
✅ |
✅ |
||||||||||
ctime_r |
✅ |
✅ |
✅ |
||||||||||
clock |
✅ |
✅ |
✅ |
||||||||||
clock_getcpuclockid |
|||||||||||||
clock_getres |
|||||||||||||
clock_gettime |
✅ |
✅ |
✅ |
||||||||||
clock_nanosleep |
|||||||||||||
clock_settime |
|||||||||||||
ctime |
|||||||||||||
ctime_r |
|||||||||||||
difftime |
✅ |
✅ |
✅ |
||||||||||
getdate |
|||||||||||||
gettimeofday |
✅ |
✅ |
✅ |
||||||||||
gmtime |
✅ |
✅ |
✅ |
||||||||||
gmtime_r |
✅ |
✅ |
✅ |
||||||||||
localtime |
|||||||||||||
localtime_r |
|||||||||||||
mktime |
✅ |
✅ |
✅ |
||||||||||
nanosleep |
✅ |
✅ |
✅ |
||||||||||
strftime |
|||||||||||||
strptime |
|||||||||||||
time |
✅ |
✅ |
✅ |
||||||||||
timer_create |
|||||||||||||
timer_delete |
|||||||||||||
timer_gettime |
|||||||||||||
timer_getoverrun |
|||||||||||||
timer_settime |
|||||||||||||
tzset |