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

constexpr void make12() noexcept;
constexpr void make24() noexcept;

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.


It is not possible to query the current output format.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.