Lines Matching defs:hours
57 __h_(chrono::duration_cast<chrono::hours>(chrono::abs(__d))),
58 __m_(chrono::duration_cast<chrono::minutes>(chrono::abs(__d) - hours())),
59 __s_(chrono::duration_cast<chrono::seconds>(chrono::abs(__d) - hours() - minutes())),
60 __f_(chrono::duration_cast<precision>(chrono::abs(__d) - hours() - minutes() - seconds())) {}
63 _LIBCPP_HIDE_FROM_ABI constexpr chrono::hours hours() const noexcept { return __h_; }
77 chrono::hours __h_;
84 _LIBCPP_HIDE_FROM_ABI inline constexpr bool is_am(const hours& __h) noexcept {
85 return __h >= hours(0) && __h < hours(12);
87 _LIBCPP_HIDE_FROM_ABI inline constexpr bool is_pm(const hours& __h) noexcept {
88 return __h >= hours(12) && __h < hours(24);
91 _LIBCPP_HIDE_FROM_ABI inline constexpr hours make12(const hours& __h) noexcept {
92 if (__h == hours(0))
93 return hours(12);
94 else if (__h <= hours(12))
97 return __h - hours(12);
100 _LIBCPP_HIDE_FROM_ABI inline constexpr hours make24(const hours& __h, bool __is_pm) noexcept {
102 return __h == hours(12) ? __h : __h + hours(12);
104 return __h == hours(12) ? hours(0) : __h;