STD::CHRONO::HH_MM_SS(3)
π NAME π
std::chrono::hh_mm_ss< _Duration > β bestie, it's the chrono glow-up that splits a duration into hours, minutes, seconds and subseconds β¨
πΈ SYNOPSIS πΈ
#include <chrono>
π Public Types π
using precision
π¦ Public Member Functions π¦
constexpr hh_mm_ss (_Duration __d)constexpr chrono::hours hours () const noexceptconstexpr bool is_negative () const noexceptconstexpr chrono::minutes minutes () const noexceptconstexpr operator precision () const noexceptconstexpr chrono::seconds seconds () const noexceptconstexpr precision subseconds () const noexceptconstexpr precision to_duration () const noexcept
π Static Public Attributes π
static constexpr unsigned fractional_width
π Detailed Description π
template<typename _Duration>
class std::chrono::hh_mm_ss< _Duration >"
Utility for splitting a duration into hours, minutes, and seconds β no cap, that's literally the whole serve π«Ά
It's a convenience type, okay? The way it just hands you the constituent parts β hours, minutes, seconds and subseconds β of a duration, one accessor each, no math required on your end. It's giving personal assistant energy. It's giving "I already did that for you, bestie." π
β Since β
- C++20 β yeah, she's a modern girl, don't come at her with a C++17 compiler, it's not gonna work out π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. (Not a human author, just a robot doing its little documentation ballet π€π)
okay that's the whole page, periodt π β¨
This one lives in the Library Functions Manual, and the header up top introduces her as std::chron...Duration >(3) (yes, the title got cutely truncated, we love a mysterious queen). The footer credits libstdc++ as the source β and ngl there's no date on this one, so we're just gonna say she's timeless ππ¦
ily, go format some durations π
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms