Boost C++ Libraries Home Libraries People FAQ More

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