Namespaces
Variants
Views
Actions

std::time_t

From cppreference.com
< cpp‎ | chrono‎ | c
 
 
 
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
 
C-style date and time utilities
Functions
Time manipulation
Format conversions
Constants
Types
time_t
(C++17)
 
Defined in header <ctime>
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] See also

returns the current time of the system as time since epoch
(function) [edit]
converts time since epoch to calendar time expressed as local time
(function) [edit]
converts time since epoch to calendar time expressed as Universal Coordinated Time
(function) [edit]
C documentation for time_t