mktime
From cppreference.com
Defined in header <time.h>
|
||
Converts local calendar time to a time since epoch as a time_t object, ignoring the values of time->tm_wday
and time->yday
. The values of other components of time
are not restricted to their usual ranges. A negative value of time->tm_isdst
causes mktime
to attempt to determine if Daylight Saving Time was in effect.
If successful, recalculates and updates all fields in time
to fit their proper ranges.
Contents |
[edit] Parameters
time | - | 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 if time
cannot be represented as a time_t object.
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
converts time since epoch to calendar time expressed as local time (function) |
|