Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
date::year

Retrieves the year component.

Synopsis
constexpr std::uint16_t
year() const;
Description

Represents the year number in the Gregorian calendar. If this->valid() == true, this value is within the [0, 9999] range.

Exception safety

No-throw guarantee.


PrevUpHomeNext