Namespaces
Variants
Views
Actions

std::chrono::system_clock::to_time_t

From cppreference.com
< cpp‎ | chrono‎ | system clock
Revision as of 15:53, 2 November 2012 by P12bot (Talk | contribs)

static std::time_t to_time_t( const std::chrono::time_point& t );
(since C++11)

Converts t to a std::time_t type.

If std::time_t has lower precision, it is implementation-defined whether the value is rounded or truncated.

Contents

Parameters

t - time point to convert

Return value

A std::time_t value representing t.

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/chrono/system clock/dcl list from time t