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
Constructs a datetime from its individual components.
constexpr datetime( std::uint16_t year, std::uint8_t month, std::uint8_t day, std::uint8_t hour = 0, std::uint8_t minute = 0, std::uint8_t second = 0, std::uint32_t microsecond = 0) noexcept;
Component values that yield invalid datetimes (like zero or out-of-range
values) are allowed, resulting in an object with this->valid() == false.
No-throw guarantee.