diff --git a/date.h b/date.h index 61364ba..30117eb 100644 --- a/date.h +++ b/date.h @@ -3096,6 +3096,11 @@ public: return to24hr(); } + CONSTCD14 precision to_duration() const noexcept + { + return static_cast(*this); + } + CONSTCD14 time_of_day_storage& make24() noexcept {base::make24(); return *this;} CONSTCD14 time_of_day_storage& make12() noexcept {base::make12(); return *this;} @@ -3157,6 +3162,11 @@ public: return to24hr() + m_; } + CONSTCD14 precision to_duration() const noexcept + { + return static_cast(*this); + } + CONSTCD14 time_of_day_storage& make24() noexcept {base::make24(); return *this;} CONSTCD14 time_of_day_storage& make12() noexcept {base::make12(); return *this;} @@ -3223,6 +3233,11 @@ public: return to24hr() + m_ + s_; } + CONSTCD14 precision to_duration() const noexcept + { + return static_cast(*this); + } + CONSTCD14 time_of_day_storage& make24() noexcept {base::make24(); return *this;} CONSTCD14 time_of_day_storage& make12() noexcept {base::make12(); return *this;} @@ -3298,6 +3313,11 @@ public: return to24hr() + m_ + s_ + sub_s_; } + CONSTCD14 precision to_duration() const noexcept + { + return static_cast(*this); + } + CONSTCD14 time_of_day_storage& make24() noexcept {base::make24(); return *this;} CONSTCD14 time_of_day_storage& make12() noexcept {base::make12(); return *this;}