Popular Tutorials
Start Learning C++Certification Courses
Created with over a decade of experience and thousands of feedback.
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