std::chrono::hh_mm_ss
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Date and time library
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
hh_mm_ss
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
std::chrono::hh_mm_ss
Defined in header
<chrono>
template< class Duration >
class hh_mm_ss;
(since C++20)
class hh_mm_ss;
The class template hh_mm_ss
splits a std::chrono::duration into a "broken down" time such as hours:minutes:seconds, with the precision of the split determined by the Duration
template parameter. It is primarily a formatting tool.
Duration
must be a specialization of std::chrono::duration , otherwise the program is ill-formed.
Contents
[edit] Member constants
constexpr unsigned fractional_width
[static]
[
0,
18]
such that precision
(see below) will exactly represent the value of Duration{1}, or 6 if there's no such integer (public static member constant)
[edit] Member types
Member type
Definition
precision
std::chrono::duration <std::common_type_t <Duration::rep, std::chrono::seconds::rep>,
std::ratio <1, 10fractional_width
>>