Namespaces
Variants
Views
Actions

C Date and time utilities

From cppreference.com
< cpp‎ | chrono
 
 
Utilities library
Language support
Type support (basic types, RTTI)
Library feature-test macros (C++20)
Dynamic memory management
Program utilities
Coroutine support (C++20)
Variadic functions
Debugging support
(C++26)
Three-way comparison
(C++20)
(C++20)(C++20)(C++20)
(C++20)(C++20)(C++20)
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)

 
Date and time utilities
Time point
(C++11)
(C++20)
Duration
(C++11)
Clocks
(C++11)      
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time of day
(C++20)(C++20)
(C++20)(C++20)
(C++20)

Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
Time zones
(C++20)
(C++20)
(C++20)
chrono I/O
(C++20)
C-style date and time
 
C-style date and time utilities
Functions
Time manipulation
Format conversions
Constants
Types
(C++17)
 

Contents

[edit] Functions

Defined in header <ctime>
Time manipulation
computes the difference between times
(function) [edit]
returns the current time of the system as time since epoch
(function) [edit]
returns raw processor clock time since the program is started
(function) [edit]
returns the calendar time in seconds and nanoseconds based on a given time base
(function) [edit]
Format conversions
converts a std::tm object to a textual representation
(function) [edit]
converts a std::time_t object to a textual representation
(function) [edit]
converts a std::tm object to custom textual representation
(function) [edit]
converts a std::tm object to custom wide string textual representation
(function) [edit]
converts time since epoch to calendar time expressed as Universal Coordinated Time
(function) [edit]
converts time since epoch to calendar time expressed as local time
(function) [edit]
converts calendar time to time since epoch
(function) [edit]

[edit] Constants

number of processor clock ticks per second
(macro constant) [edit]

[edit] Types

calendar time type
(class) [edit]
time since epoch type
(typedef) [edit]
process running time
(typedef) [edit]
(C++17)
time in seconds and nanoseconds
(struct)[edit]

[edit] See also

C documentation for Date and time utilities