Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
date::date (3 of 4 overloads)

Constructs a date from a time_point.

Synopsis
constexpr
date(
    time_point tp);
Description

The time point is interpreted as a local time. No time zone conversion is performed.

Exception safety

Strong guarantee. Throws on invalid input.

Exceptions

Type

Thrown On

std::out_of_range

If the resulting date would be out of the [min_date, max_date] range.


PrevUpHomeNext