Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
datetime::get_local_time_point

Converts *this into a local_time_point (unchecked access).

Synopsis
constexpr local_time_point
get_local_time_point() const;
Description

The returned object has the same time_since_epoch() as this->get_time_point(), but uses the std::chrono::local_t pseudo-clock to better represent the absence of time zone information.

Requires C++20 calendar types.

Preconditions

this->valid() == true (if violated, results in undefined behavior).

Exception safety

No-throw guarantee.


PrevUpHomeNext