.TH "std::chrono" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::chrono \- ISO C++ 2011 namespace for date and time utilities\&. .SH SYNOPSIS .br .PP .SS "Classes" .in +1c .ti -1c .RI "struct \fBduration\fP" .br .RI "\fCchrono::duration\fP represents a distance between two points in time " .ti -1c .RI "struct \fBduration_values\fP" .br .RI "duration_values " .ti -1c .RI "struct \fBsteady_clock\fP" .br .RI "Monotonic clock\&. " .ti -1c .RI "struct \fBsystem_clock\fP" .br .RI "System clock\&. " .ti -1c .RI "struct \fBtime_point\fP" .br .RI "\fCchrono::time_point\fP represents a point in time as measured by a clock " .ti -1c .RI "struct \fBtreat_as_floating_point\fP" .br .RI "treat_as_floating_point " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "using \fBdays\fP = \fBduration\fP< int64_t, \fBratio\fP< 86400 > >" .br .RI "days " .ti -1c .RI "using \fBfile_clock\fP = ::std::filesystem::__file_clock" .br .ti -1c .RI "template using \fBfile_time\fP = \fBtime_point\fP< file_clock, _Duration >" .br .ti -1c .RI "using \fBgps_seconds\fP = \fBgps_time\fP< \fBseconds\fP >" .br .ti -1c .RI "template using \fBgps_time\fP = \fBtime_point\fP< gps_clock, _Duration >" .br .ti -1c .RI "using \fBhigh_resolution_clock\fP = \fBsystem_clock\fP" .br .RI "Highest-resolution clock\&. " .ti -1c .RI "using \fBhours\fP = \fBduration\fP< int64_t, \fBratio\fP< 3600 > >" .br .RI "hours " .ti -1c .RI "using \fBlocal_days\fP = \fBlocal_time\fP< \fBdays\fP >" .br .ti -1c .RI "using \fBlocal_seconds\fP = \fBlocal_time\fP< \fBseconds\fP >" .br .ti -1c .RI "template using \fBlocal_time\fP = \fBtime_point\fP< local_t, _Duration >" .br .ti -1c .RI "using \fBmicroseconds\fP = \fBduration\fP< int64_t, \fBmicro\fP >" .br .RI "microseconds " .ti -1c .RI "using \fBmilliseconds\fP = \fBduration\fP< int64_t, \fBmilli\fP >" .br .RI "milliseconds " .ti -1c .RI "using \fBminutes\fP = \fBduration\fP< int64_t, \fBratio\fP< 60 > >" .br .RI "minutes " .ti -1c .RI "using \fBmonths\fP = \fBduration\fP< int64_t, \fBratio\fP< 2629746 > >" .br .RI "months " .ti -1c .RI "using \fBnanoseconds\fP = \fBduration\fP< int64_t, \fBnano\fP >" .br .RI "nanoseconds " .ti -1c .RI "using \fBseconds\fP = \fBduration\fP< int64_t >" .br .RI "seconds " .ti -1c .RI "using \fBsys_days\fP = \fBsys_time\fP< \fBdays\fP >" .br .ti -1c .RI "using \fBsys_seconds\fP = \fBsys_time\fP< \fBseconds\fP >" .br .ti -1c .RI "template using \fBsys_time\fP = \fBtime_point\fP< \fBsystem_clock\fP, _Duration >" .br .ti -1c .RI "using \fBtai_seconds\fP = \fBtai_time\fP< \fBseconds\fP >" .br .ti -1c .RI "template using \fBtai_time\fP = \fBtime_point\fP< tai_clock, _Duration >" .br .ti -1c .RI "using \fButc_seconds\fP = \fButc_time\fP< \fBseconds\fP >" .br .ti -1c .RI "template using \fButc_time\fP = \fBtime_point\fP< utc_clock, _Duration >" .br .ti -1c .RI "using \fBweeks\fP = \fBduration\fP< int64_t, \fBratio\fP< 604800 > >" .br .RI "weeks " .ti -1c .RI "using \fByears\fP = \fBduration\fP< int64_t, \fBratio\fP< 31556952 > >" .br .RI "years " .in -1c .SS "Functions" .in +1c .ti -1c .RI "template constexpr \fBenable_if_t\fP< \fBnumeric_limits\fP< _Rep >::is_signed, \fBduration\fP< _Rep, _Period > > \fBabs\fP (\fBduration\fP< _Rep, _Period > __d)" .br .ti -1c .RI "template constexpr __enable_if_is_duration< _ToDur > \fBceil\fP (const \fBduration\fP< _Rep, _Period > &__d)" .br .ti -1c .RI "template constexpr \fBenable_if_t\fP< __is_duration< _ToDur >::value, \fBtime_point\fP< _Clock, _ToDur > > \fBceil\fP (const \fBtime_point\fP< _Clock, _Dur > &__tp)" .br .ti -1c .RI "template constexpr __enable_if_is_duration< _ToDur > \fBduration_cast\fP (const \fBduration\fP< _Rep, _Period > &__d)" .br .RI "duration_cast " .ti -1c .RI "template constexpr __enable_if_is_duration< _ToDur > \fBfloor\fP (const \fBduration\fP< _Rep, _Period > &__d)" .br .ti -1c .RI "template constexpr \fBenable_if_t\fP< __is_duration< _ToDur >::value, \fBtime_point\fP< _Clock, _ToDur > > \fBfloor\fP (const \fBtime_point\fP< _Clock, _Dur > &__tp)" .br .ti -1c .RI "constexpr bool \fBis_am\fP (const \fBhours\fP &__h) noexcept" .br .ti -1c .RI "constexpr bool \fBis_pm\fP (const \fBhours\fP &__h) noexcept" .br .ti -1c .RI "constexpr \fBhours\fP \fBmake12\fP (const \fBhours\fP &__h) noexcept" .br .ti -1c .RI "constexpr \fBhours\fP \fBmake24\fP (const \fBhours\fP &__h, bool __is_pm) noexcept" .br .ti -1c .RI "template \fBbasic_ostream\fP< _CharT, _Traits > & \fBoperator<<\fP (\fBstd::basic_ostream\fP< _CharT, _Traits > &__os, const \fBduration\fP< _Rep, _Period > &__d)" .br .ti -1c .RI "template constexpr \fBenable_if_t\fP< __and_< __is_duration< _ToDur >, __not_< \fBtreat_as_floating_point\fP< typename _ToDur::rep > > >::value, _ToDur > \fBround\fP (const \fBduration\fP< _Rep, _Period > &__d)" .br .ti -1c .RI "template constexpr \fBenable_if_t\fP< __and_< __is_duration< _ToDur >, __not_< \fBtreat_as_floating_point\fP< typename _ToDur::rep > > >::value, \fBtime_point\fP< _Clock, _ToDur > > \fBround\fP (const \fBtime_point\fP< _Clock, _Dur > &__tp)" .br .ti -1c .RI "template constexpr \fBenable_if\fP< __is_duration< _ToDur >::value, \fBtime_point\fP< _Clock, _ToDur > >::type \fBtime_point_cast\fP (const \fBtime_point\fP< _Clock, _Dur > &__t)" .br .RI "time_point_cast " .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "template constexpr \fBcommon_type\fP< \fBduration\fP< _Rep1, _Period1 >, \fBduration\fP< _Rep2, _Period2 > >::type \fBoperator\-\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .RI "The difference between two durations\&. " .in -1c .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "template constexpr \fBduration\fP< __common_rep_t< _Rep2, _Rep1 >, _Period > \fBoperator*\fP (const _Rep1 &__s, const \fBduration\fP< _Rep2, _Period > &__d)" .br .ti -1c .RI "template constexpr \fBduration\fP< __common_rep_t< _Rep1, __disable_if_is_duration< _Rep2 > >, _Period > \fBoperator/\fP (const \fBduration\fP< _Rep1, _Period > &__d, const _Rep2 &__s)" .br .ti -1c .RI "template constexpr \fBcommon_type\fP< _Rep1, _Rep2 >::type \fBoperator/\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .ti -1c .RI "template constexpr \fBduration\fP< __common_rep_t< _Rep1, __disable_if_is_duration< _Rep2 > >, _Period > \fBoperator%\fP (const \fBduration\fP< _Rep1, _Period > &__d, const _Rep2 &__s)" .br .ti -1c .RI "template constexpr \fBcommon_type\fP< \fBduration\fP< _Rep1, _Period1 >, \fBduration\fP< _Rep2, _Period2 > >::type \fBoperator%\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .in -1c .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "template constexpr bool \fBoperator<\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator!=\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator<=\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator>\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator>=\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .in -1c .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "template constexpr \fBtime_point\fP< _Clock, typename \fBcommon_type\fP< \fBduration\fP< _Rep1, _Period1 >, _Dur2 >::type > \fBoperator+\fP (const \fBduration\fP< _Rep1, _Period1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .RI "Adjust a time point forwards by the given duration\&. " .ti -1c .RI "template constexpr \fBtime_point\fP< _Clock, typename \fBcommon_type\fP< _Dur1, \fBduration\fP< _Rep2, _Period2 > >::type > \fBoperator\-\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBduration\fP< _Rep2, _Period2 > &__rhs)" .br .RI "Adjust a time point backwards by the given duration\&. " .ti -1c .RI "template constexpr \fBcommon_type\fP< _Dur1, _Dur2 >::type \fBoperator\-\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .RI "The difference between two time points (as a duration) " .in -1c .in -1c .PP .RI "\fB\fP" .br .in +1c .in +1c .ti -1c .RI "template constexpr bool \fBoperator!=\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator<\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator<=\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator>\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .ti -1c .RI "template constexpr bool \fBoperator>=\fP (const \fBtime_point\fP< _Clock, _Dur1 > &__lhs, const \fBtime_point\fP< _Clock, _Dur2 > &__rhs)" .br .in -1c .in -1c .SS "Variables" .in +1c .ti -1c .RI "constexpr month \fBApril\fP" .br .ti -1c .RI "constexpr month \fBAugust\fP" .br .ti -1c .RI "constexpr month \fBDecember\fP" .br .ti -1c .RI "constexpr month \fBFebruary\fP" .br .ti -1c .RI "constexpr weekday \fBFriday\fP" .br .ti -1c .RI "template constexpr bool \fBis_clock_v\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< file_clock >\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< gps_clock >\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< steady_clock >\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< system_clock >\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< tai_clock >\fP" .br .ti -1c .RI "template<> constexpr bool \fBis_clock_v< utc_clock >\fP" .br .ti -1c .RI "constexpr month \fBJanuary\fP" .br .ti -1c .RI "constexpr month \fBJuly\fP" .br .ti -1c .RI "constexpr month \fBJune\fP" .br .ti -1c .RI "constexpr last_spec \fBlast\fP" .br .ti -1c .RI "constexpr month \fBMarch\fP" .br .ti -1c .RI "constexpr month \fBMay\fP" .br .ti -1c .RI "constexpr weekday \fBMonday\fP" .br .ti -1c .RI "constexpr month \fBNovember\fP" .br .ti -1c .RI "constexpr month \fBOctober\fP" .br .ti -1c .RI "constexpr weekday \fBSaturday\fP" .br .ti -1c .RI "constexpr month \fBSeptember\fP" .br .ti -1c .RI "constexpr weekday \fBSunday\fP" .br .ti -1c .RI "constexpr weekday \fBThursday\fP" .br .ti -1c .RI "template constexpr bool \fBtreat_as_floating_point_v\fP" .br .ti -1c .RI "constexpr weekday \fBTuesday\fP" .br .ti -1c .RI "constexpr weekday \fBWednesday\fP" .br .in -1c .SH "Detailed Description" .PP ISO C++ 2011 namespace for date and time utilities\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.