Namespaces
Variants
Views
Actions

std::mktime

From cppreference.com
< cpp‎ | chrono‎ | c
Revision as of 12:13, 14 June 2011 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/chrono/c/sidebar

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.

Template:params

tm - pointer to a tm object specifying local calendar time to convert

Template:returns

time since epoch as a time_t object on success or Template:cpp otherwise.

Template:example cpp