std::chrono::hh_mm_ss - Man Page

std::chrono::hh_mm_ss< _Duration >

Synopsis

Public Types

using precision = duration< common_type_t< typename _Duration::rep, chrono::seconds::rep >, ratio< 1, __detail::__pow10(fractional_width)> >

Public Member Functions

constexpr hh_mm_ss (_Duration __d)
constexpr chrono::hours hours () const noexcept
constexpr bool is_negative () const noexcept
constexpr chrono::minutes minutes () const noexcept
constexpr operator precision () const noexcept
constexpr chrono::seconds seconds () const noexcept
constexpr precision subseconds () const noexcept
constexpr precision to_duration () const noexcept

Static Public Attributes

static constexpr unsigned fractional_width

Friends

template<typename > struct __detail::__utc_leap_second

Detailed Description

template<typename _Duration>

class std::chrono::hh_mm_ss< _Duration >"Utility for splitting a duration into hours, minutes, and seconds

This is a convenience type that provides accessors for the constituent parts (hours, minutes, seconds and subseconds) of a duration.

Since

C++20

Definition at line 2269 of file chrono.

Member Typedef Documentation

template<typename _Duration > using std::chrono::hh_mm_ss< _Duration >::precision =  duration<common_type_t<typename _Duration::rep, chrono::seconds::rep>, ratio<1, __detail::__pow10(fractional_width)> >

Definition at line 2322 of file chrono.

Constructor & Destructor Documentation

template<typename _Duration > constexpr std::chrono::hh_mm_ss< _Duration >::hh_mm_ss (_Duration __d) [inline], [explicit], [constexpr]

Definition at line 2330 of file chrono.

Member Function Documentation

template<typename _Duration > constexpr chrono::hours std::chrono::hh_mm_ss< _Duration >::hours () const [inline], [constexpr], [noexcept]

Definition at line 2344 of file chrono.

template<typename _Duration > constexpr bool std::chrono::hh_mm_ss< _Duration >::is_negative () const [inline], [constexpr], [noexcept]

Definition at line 2335 of file chrono.

template<typename _Duration > constexpr chrono::minutes std::chrono::hh_mm_ss< _Duration >::minutes () const [inline], [constexpr], [noexcept]

Definition at line 2348 of file chrono.

template<typename _Duration > constexpr std::chrono::hh_mm_ss< _Duration >::operator precision () const [inline], [explicit], [constexpr], [noexcept]

Definition at line 2360 of file chrono.

template<typename _Duration > constexpr chrono::seconds std::chrono::hh_mm_ss< _Duration >::seconds () const [inline], [constexpr], [noexcept]

Definition at line 2352 of file chrono.

template<typename _Duration > constexpr precision std::chrono::hh_mm_ss< _Duration >::subseconds () const [inline], [constexpr], [noexcept]

Definition at line 2356 of file chrono.

template<typename _Duration > constexpr precision std::chrono::hh_mm_ss< _Duration >::to_duration () const [inline], [constexpr], [noexcept]

Definition at line 2364 of file chrono.

Member Data Documentation

template<typename _Duration > constexpr unsigned std::chrono::hh_mm_ss< _Duration >::fractional_width [static], [constexpr]

Definition at line 2320 of file chrono.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Thu Jan 19 2023 libstdc++