std::time_t

std::time_t

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.

See also

returns the current 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 Universal Coordinated Time
(function)
C documentation for time_t

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/c/time_t

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部