Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
datetime::hour

Retrieves the hour component.

Synopsis
constexpr std::uint8_t
hour() const;
Description

If this->valid() == true, this value is within the [0, 23] range.

Exception safety

No-throw guarantee.


PrevUpHomeNext