std::chrono::time_of_day::time_of_day

From cppreference.com
< cpp‎ | chrono‎ | time of day
 
 
 
Date and time utilities
(C++11)
(C++11)
Clocks
(C++20)
                                                  
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
 
 
time_of_day() = default;
(1)
explicit constexpr time_of_day(precision since_midnight) noexcept;
(2)

Constructs a time_of_day object.

1) Default constructor leaves the object uninitialized.
2) Constructs a time_of_day object in 24 hour format corresponding to since_midnight after 00:00:00. As applicable:
  • hours() returns the integral number of hours since_midnight is after 00:00:00.
  • minutes() returns the integral number of minutes since_midnight is after (00:00:00 + hours()).
  • seconds() returns the integral number of seconds since_midnight is after (00:00:00 + hours() + minutes()).
  • subseconds() returns the integral number of fractional seconds since_midnight is after (00:00:00 + hours() + minutes() + seconds()).