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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
datetime::datetime (2 of 3 overloads)

Constructs a datetime from its individual components.

Synopsis
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);
Exception safety

No-throw guarantee.


PrevUpHomeNext