| Functions | ||||
| Time manipulation | ||||
(C11) | ||||
(C23) | ||||
| Format conversions | ||||
(deprecated in C23)(C11) | ||||
(deprecated in C23)(C11) | ||||
(C95) | ||||
(C23)(C11) | ||||
(C23)(C11) | ||||
| Constants | ||||
| Types | ||||
time_t | ||||
(C11) |
Defined in header <time.h> | ||
typedef/* unspecified */ time_t; | ||
Real arithmetic type capable of representing times.
Although not defined by the C standard, this is almost always an integral value holding the number of seconds (not counting leap seconds) since 00:00, Jan 1 1970 UTC, corresponding to POSIX time.
Contents |
The standard uses the termcalendar time when referring to a value of typetime_t.
Show the start of the epoch.
Possible output:
0 seconds since the epoch beganThu Jan 1 00:00:00 1970
| returns the current calendar time of the system as time since epoch (function)[edit] | |
(C23)(C11) | converts time since epoch to calendar time expressed as local time (function)[edit] |
(C23)(C11) | converts time since epoch to calendar time expressed as Coordinated Universal Time (UTC) (function)[edit] |
C++ documentation fortime_t | |