Lines Matching full:year
20 #include <__chrono/year.h>
40 chrono::year __y_;
47 const chrono::year& __yval, const chrono::month& __mval, const chrono::day& __dval) noexcept
60 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; }
87 return year_month_day{chrono::year{__yr + (__mth <= 2)}, chrono::month{__mth}, chrono::day{__dy}};
108 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day();
113 if (auto __c = __lhs.year() <=> __rhs.year(); __c != 0)
121 return year_month_day{__lhs.year(), __lhs.month(), __rhs};
128 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day operator/(const year& __lhs, const month_day& __rhs) noexcept {
133 return year(__lhs) / __rhs;
136 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day operator/(const month_day& __lhs, const year& __rhs) noexcept {
141 return year(__rhs) / __lhs;
146 return (__lhs.year() / __lhs.month() + __rhs) / __lhs.day();
161 return (__lhs.year() + __rhs) / __lhs.month() / __lhs.day();
193 chrono::year __y_;
197 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day_last(const year& __yval, const month_day_last& __mdlval) noexcept
205 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; }
210 return sys_days{year() / month() / day()};
213 return local_days{year() / month() / day()};
239 return __lhs.year() == __rhs.year() && __lhs.month_day_last() == __rhs.month_day_last();
244 if (auto __c = __lhs.year() <=> __rhs.year(); __c != 0)
250 return year_month_day_last{__lhs.year(), month_day_last{__lhs.month()}};
254 operator/(const year& __lhs, const month_day_last& __rhs) noexcept {
259 return year_month_day_last{year{__lhs}, __rhs};
263 operator/(const month_day_last& __lhs, const year& __rhs) noexcept {
268 return year{__rhs} / __lhs;
273 return (__lhs.year() / __lhs.month() + __rhs) / last;
288 return year_month_day_last{__lhs.year() + __rhs, __lhs.month_day_last()};
323 : __y_{__ymdl.year()}, __m_{__ymdl.month()}, __d_{__ymdl.day()} {}