std::mktime
From Cppreference
C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Utilities library | ||||||||||||||||||||||||||||||||||||||||
Date and time utilities | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
C-style date and time utilities | ||||||||||||||||||||||||||||||||||||||||
Defined in header <ctime>
|
||
time_t mktime( struct tm *time );
|
||
Converts local calendar time to a time since epoch as a time_t object.
If successful, recalculates day of the week(tm_wday and day of the year (tm_yday) fields in time.
[edit] Parameters
tm | - | pointer to a tm object specifying local calendar time to convert |
[edit] Return value
time since epoch as a time_t object on success or -1 otherwise.
[edit] Example
This section is incomplete |