| time_now | |
| time_gmtime | A Unix timestamp as broken-down UTC time. |
| time_localtime | A Unix timestamp as broken-down local time. |
| time_format | Formats tm into buf with a strftime format string. Returns the number of
bytes written (0 on failure or when buf is too small). |
| time_parse | Parses a time string with strptime (POSIX) into *tm.
Returns 1 on success, 0 on failure (and on Windows). |
| time_mktime | Converts broken-down local time back to a Unix timestamp (-1 on error). |
| time_diff | Difference in seconds between two timestamps. |
| time_wall_ns | Wall-clock time in nanoseconds (CLOCK_REALTIME). |
| time_mono_ns | Monotonic clock in nanoseconds (CLOCK_MONOTONIC) — for elapsed time. |
| time_cpu_ns | Process CPU time in nanoseconds (CLOCK_PROCESS_CPUTIME_ID). |
| time_elapsed_ns | Elapsed nanoseconds between two mono timestamps. |
| time_ns_to_ms | Convert nanoseconds to milliseconds. |
| time_sleep_ns | Sleep for nanoseconds (high precision). |
| time_days_in_month | Days in a given month (month 0-11, year = actual year e.g. 2024). |
| time_is_leap | Return 1 if year is a leap year, 0 otherwise. |