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
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