Namespaces
Variants
Views
Actions

std::localtime

From cppreference.com
< cpp‎ | chrono‎ | c
Revision as of 17:47, 2 August 2011 by P12bot (Talk | contribs)

Template:cpp/chrono/c/sidebar

Defined in header <ctime>
struct tm *localtime( const time_t *time );

Converts given time since epoch as time_t value into calendar time, expressed in local time.

Parameters

time - pointer to a time_t object to convert

Return value

pointer to a static internal tm object on success, or Template:cpp otherwise. The structure is shared between gmtime() and localtime() and is overwritten on each invocation.

Example

Template:example cpp

Template:see also

Template:cpp/chrono/c/dcl list gmtime