member of all specializations | ||
constexpr std::chrono::hours hours() const noexcept; | (1) | |
member of all specializations except time_of_day<std::chrono::hours>
| ||
constexpr std::chrono::minutes minutes() const noexcept; | (2) | |
member only of the time_of_day<std::chrono::seconds> and time_of_day<std::chrono::duration<Rep, Period>> specializations | ||
constexpr std::chrono::seconds seconds() const noexcept; | (3) | |
member only of the time_of_day<std::chrono::duration<Rep, Period>> partial specialization | ||
constexpr precision subseconds() const noexcept; | (4) |
Obtains the components of the stored "broken down" time.
Let since_midnight
be the stored duration:
since_midnight
is after 00:00:00.since_midnight
is after (00:00:00 + hours())
.since_midnight
is after (00:00:00 + hours() + minutes())
.since_midnight
is after (00:00:00 + hours() + minutes() + seconds())
.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/chrono/time_of_day/accessors