C Date and time utilities (original) (raw)

C-style date and time utilities

Contents

[edit] Functions

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

[edit] Constants

[edit] Types

[edit] See also