##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::time_t

From cppreference.com
< cpp‎ | chrono‎ | c

Defined in header `<ctime>` |  |
typedef /* unspecified */ time_t; |  |

Arithmetic type capable of representing times.

Although not defined, this is almost always a 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

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/chrono/c/time_t&oldid=64072"