W3cubDocs

/C++

std::chrono::hh_mm_ss<Duration>::hh_mm_ss

constexpr hh_mm_ss() noexcept : hh_mm_ss{Duration::zero()} {}
(1)
constexpr explicit hh_mm_ss( Duration d );
(2)

Constructs a hh_mm_ss object.

1) Constructs a hh_mm_ss object corresponding to Duration::zero().
2) Constructs a hh_mm_ss object corresponding to d:

Parameters

d - the duration to be broken down.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/chrono/hh_mm_ss/hh_mm_ss