Date and Time Functions
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:
- 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:
<Func> |
Linux |
Windows |
MacOS |
Embedded |
GPU |
x86_64 |
aarch64 |
aarch32 |
riscv64 |
x86_64 |
aarch64 |
x86_64 |
aarch64 |
aarch32 |
riscv32 |
AMD |
nVidia |
asctime |
✅ |
✅ |
|
✅ |
|
|
|
|
|
|
|
|
asctime_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 |
|
|
|
|
|
|
|
|
|
|
|
|