Popular Tutorials
Start Learning C++Certification Courses
Created with over a decade of experience and thousands of feedback.
Python online compiler
JavaScript online compiler
SQL online compiler
Java online compiler
HTML online compiler
C online compiler
C++ online compiler
C# online compiler
PHP online compiler
Swift online compiler
Kotlin online compiler
TypeScript online compiler
Go online compiler
Rust online compiler
Scala online compiler
Dart online compiler
R online compiler
Ruby online compiler
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