std::chrono::time_of_day<Duration>::make12, std::chrono::time_of_day<Duration>::make24

From cppreference.com
< cpp‎ | chrono‎ | time of day
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

Elementary string conversions
(C++17)
(C++17)
 
Date and time utilities
(C++11)
(C++11)
Time of day
(C++20)



(C++20)(C++20)(C++20)(C++20)
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-style date and time
 
 
constexpr void make12() noexcept;
(1)
constexpr void make24() noexcept;
(2)

Changes the output format.

1) If the current output format is 24-hour, converts to 12-hour time. Otherwise no effects.
2) If the current output format is 12-hour, converts to 24-hour time. Otherwise no effects.

Notes

It is not possible to query the current output format.

Example