##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Date and time utilities

From cppreference.com
< c

### [edit] Functions

Defined in header `<time.h>`
##### 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]
##### Format conversions
asctime | converts a `time_t` object to a textual representation (function) [edit]
ctime | converts a `time_t` object to a textual representation (function) [edit]
strftime | converts a `tm` object to custom textual representation (function) [edit]
wcsftime | converts a 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

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

### [edit] Types

tm | calendar time type (class) [edit]
time_t | time since epoch type (typedef) [edit]
clock_t | process running time (typedef) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/chrono&oldid=56378"