Namespaces
Variants
Views
Actions

std::chrono::system_clock::from_time_t

From cppreference.com
< cpp‎ | chrono‎ | system clock
Revision as of 17:27, 9 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
static std::chrono::time_point from_time_t( std::time_t t );
(since C++11)

Converts t to a time point type, using the coarser precision of the two types.

If time_point has lower precision, it is implementation defined whether the value is rounded or truncated.

Contents

[edit] Parameters

t - std::time_t value to convert

[edit] Return value

A value of type std::chrono::time_point representing t.

[edit] Exceptions

noexcept specification:  
noexcept
  

[edit] See also

[static]
converts a system clock time point to std::time_t
(public static member function) [edit]