| Functions | ||||
| Time manipulation | ||||
(C11) | ||||
(C23) | ||||
| Format conversions | ||||
(deprecated in C23)(C11) | ||||
(deprecated in C23)(C11) | ||||
(C95) | ||||
(C23)(C11) | ||||
(C23)(C11) | ||||
| Constants | ||||
| Types | ||||
(C11) |
Contents |
Time manipulation | |
Defined in header <time.h> | |
| computes the difference between times (function)[edit] | |
| returns the current calendar time of the system as time since epoch (function)[edit] | |
| returns raw processor clock time since the program is started (function)[edit] | |
(C11) | returns the calendar time in seconds and nanoseconds based on a given time base (function)[edit] |
(C23) | returns the resolution of calendar time based on a given time base (function)[edit] |
Format conversions | |
Defined in header <time.h> | |
(deprecated in C23)(C11) | converts atm object to a textual representation (function)[edit] |
(deprecated in C23)(C11) | converts atime_t object to a textual representation (function)[edit] |
| converts atm object to custom textual representation (function)[edit] | |
Defined in header <wchar.h> | |
(C95) | converts atm object to custom wide string textual representation (function)[edit] |
Defined in header <time.h> | |
(C23)(C11) | converts time since epoch to calendar time expressed as Coordinated Universal Time (UTC) (function)[edit] |
(C23)(C11) | converts time since epoch to calendar time expressed as local time (function)[edit] |
| converts calendar time to time since epoch (function)[edit] | |
Defined in header <time.h> | |
| number of processor clock ticks per second (macro constant)[edit] | |
Defined in header <time.h> | |
| calendar time type (struct)[edit] | |
| calendar time since epoch type (typedef)[edit] | |
| processor time since era type (typedef)[edit] | |
(C11) | time in seconds and nanoseconds (struct)[edit] |
C++ documentation forC Date and time utilities |