Date and time utilities
From cppreference.com
< c
Contents |
[edit] Functions
Time manipulation | |
| Defined in header
<time.h> | |
| computes the difference between times (function) | |
| returns the current calendar time of the system as time since epoch (function) | |
| returns raw processor clock time since the program is started (function) | |
| (C11) |
returns the calendar time in seconds and nanoseconds based on a given time base (function) |
| (C23) |
returns the resolution of calendar time based on a given time base (function) |
Format conversions | |
| Defined in header
<time.h> | |
| (deprecated in C23)(C11) |
converts a tm object to a textual representation (function) |
| (deprecated in C23)(C11) |
converts a time_t object to a textual representation (function) |
| converts a tm object to custom textual representation (function) | |
| Defined in header
<wchar.h> | |
| (C95) |
converts a tm object to custom wide string textual representation (function) |