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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
datetime::datetime (3 of 3 overloads)

Constructs a datetime from a time_point.

Synopsis
constexpr
datetime(
    time_point tp);
Exception safety

Strong guarantee. Throws on invalid input.

Exceptions

Type

Thrown On

std::out_of_range

If the resulting datetime object would be out of the [min_datetime, max_datetime] range.


PrevUpHomeNext