Spec-Zone.ru › C++

C Date and time utilities

Functions

Time manipulation
Defined in header <ctime>
difftime
computes the difference between times
(function)
time
returns the current time of the system as time since epoch
(function)
clock
returns raw processor clock time since the program is started
(function)
timespec_get
(C++17)
returns the calendar time in seconds and nanoseconds based on a given time base
(function)
timespec_getres
(C++26)
returns the resolution of calendar time based on a given time base
(function)
Format conversions
Defined in header <ctime>
asctime
(deprecated in C++26)
converts a std::tm object to a textual representation
(function)
ctime
(deprecated in C++26)
converts a std::time_t object to a textual representation
(function)
strftime
converts a std::tm object to custom textual representation
(function)
Defined in header <cwchar>
wcsftime
converts a std::tm object to custom wide string textual representation
(function)
Defined in header <ctime>
gmtimegmtime_r
(C++26)
converts time since epoch to calendar time expressed as Universal Coordinated Time
(function)
localtimelocaltime_r
(C++26)
converts time since epoch to calendar time expressed as local time
(function)
mktime
converts calendar time to time since epoch
(function)
timegm
(C++26)
converts calendar time to time since epoch, ignoring the Daylight Saving Time flag
(function)

Constants

Defined in header <ctime>
CLOCKS_PER_SEC
number of processor clock ticks per second
(macro constant)

Types

Defined in header <ctime>
tm
calendar time type
(class)
time_t
time since epoch type
(typedef)
clock_t
process running time
(typedef)
timespec
(C++17)
time in seconds and nanoseconds
(struct)

See also

C documentation for Date and time utilities

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API