C++ ctime | Programiz D11 Phase 2 Skip to main content

C++ <ctime>

The C++ <ctime> header file declares a set of functions, macros and types to work with date and time. For example, the time() function is used to get the current time.

converts calendar time to character representation

returns processor time consumed by program

converts time since epoch to char representation

computes difference between two times in seconds

converts given time since epoch to UTC time

converts given time since epoch to local time

converts calendar time to multibyte character str

Returns current calendar time