time_t
From cppreference.com
Defined in header
<time.h>
|
||
typedef /* unspecified */ time_t;
|
||
Arithmetic type capable of representing times.
Although not defined, 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.
[edit] Example
Show the start of the epoch.
Run this code
Possible output:
0 seconds since the epoch began Thu Jan 1 00:00:00 1970
[edit] See also
returns the current calendar time of the system as time since epoch (function) |
|
converts time since epoch to calendar time expressed as local time (function) |
|
converts time since epoch to calendar time expressed as Coordinated Universal Time (UTC) (function) |
|
C++ documentation for time_t
|