Lines Matching full:year

228 class year;  variable
248 CONSTCD11 year_month operator/(const year& y, const month& m) NOEXCEPT;
249 CONSTCD11 year_month operator/(const year& y, int m) NOEXCEPT;
274 CONSTCD11 year_month_day operator/(const year& y, const month_day& md) NOEXCEPT;
276 CONSTCD11 year_month_day operator/(const month_day& md, const year& y) NOEXCEPT;
282 year_month_day_last operator/(const year& y, const month_day_last& mdl) NOEXCEPT;
286 year_month_day_last operator/(const month_day_last& mdl, const year& y) NOEXCEPT;
296 operator/(const year& y, const month_weekday& mwd) NOEXCEPT;
304 operator/(const month_weekday& mwd, const year& y) NOEXCEPT;
316 operator/(const year& y, const month_weekday_last& mwdl) NOEXCEPT;
324 operator/(const month_weekday_last& mwdl, const year& y) NOEXCEPT;
408 // year
410 class year
415 year() = default;
416 explicit CONSTCD11 year(int y) NOEXCEPT;
418 CONSTCD14 year& operator++() NOEXCEPT;
419 CONSTCD14 year operator++(int) NOEXCEPT;
420 CONSTCD14 year& operator--() NOEXCEPT;
421 CONSTCD14 year operator--(int) NOEXCEPT;
423 CONSTCD14 year& operator+=(const years& y) NOEXCEPT;
424 CONSTCD14 year& operator-=(const years& y) NOEXCEPT;
426 CONSTCD11 year operator-() const NOEXCEPT;
427 CONSTCD11 year operator+() const NOEXCEPT;
434 static CONSTCD11 year min() NOEXCEPT { return year{-32767}; } in min()
435 static CONSTCD11 year max() NOEXCEPT { return year{32767}; } in max()
438 CONSTCD11 bool operator==(const year& x, const year& y) NOEXCEPT;
439 CONSTCD11 bool operator!=(const year& x, const year& y) NOEXCEPT;
440 CONSTCD11 bool operator< (const year& x, const year& y) NOEXCEPT;
441 CONSTCD11 bool operator> (const year& x, const year& y) NOEXCEPT;
442 CONSTCD11 bool operator<=(const year& x, const year& y) NOEXCEPT;
443 CONSTCD11 bool operator>=(const year& x, const year& y) NOEXCEPT;
445 CONSTCD11 year operator+(const year& x, const years& y) NOEXCEPT;
446 CONSTCD11 year operator+(const years& x, const year& y) NOEXCEPT;
447 CONSTCD11 year operator-(const year& x, const years& y) NOEXCEPT;
448 CONSTCD11 years operator-(const year& x, const year& y) NOEXCEPT;
452 operator<<(std::basic_ostream<CharT, Traits>& os, const year& y);
559 date::year y_;
564 CONSTCD11 year_month(const date::year& y, const date::month& m) NOEXCEPT;
566 CONSTCD11 date::year year() const NOEXCEPT;
707 date::year y_;
713 CONSTCD11 year_month_day(const date::year& y, const date::month& m,
727 CONSTCD11 date::year year() const NOEXCEPT;
765 date::year y_;
769 CONSTCD11 year_month_day_last(const date::year& y,
779 CONSTCD11 date::year year() const NOEXCEPT;
837 date::year y_;
843 CONSTCD11 year_month_weekday(const date::year& y, const date::month& m,
855 CONSTCD11 date::year year() const NOEXCEPT;
910 date::year y_;
915 CONSTCD11 year_month_weekday_last(const date::year& y, const date::month& m,
925 CONSTCD11 date::year year() const NOEXCEPT;
982 CONSTCD11 date::year operator ""_y(unsigned long long y) NOEXCEPT;
1694 // year
1696 CONSTCD11 inline year::year(int y) NOEXCEPT : y_(static_cast<decltype(y_)>(y)) {}
1697 CONSTCD14 inline year& year::operator++() NOEXCEPT {++y_; return *this;}
1698 CONSTCD14 inline year year::operator++(int) NOEXCEPT {auto tmp(*this); ++(*this); return tmp;}
1699 CONSTCD14 inline year& year::operator--() NOEXCEPT {--y_; return *this;}
1700 CONSTCD14 inline year year::operator--(int) NOEXCEPT {auto tmp(*this); --(*this); return tmp;}
1701 CONSTCD14 inline year& year::operator+=(const years& y) NOEXCEPT {*this = *this + y; return *this;}
1702 CONSTCD14 inline year& year::operator-=(const years& y) NOEXCEPT {*this = *this - y; return *this;}
1703 CONSTCD11 inline year year::operator-() const NOEXCEPT {return year{-y_};}
1704 CONSTCD11 inline year year::operator+() const NOEXCEPT {return *this;}
1709 year::is_leap() const NOEXCEPT
1714 CONSTCD11 inline year::operator int() const NOEXCEPT {return y_;}
1719 year::ok() const NOEXCEPT
1727 operator==(const year& x, const year& y) NOEXCEPT
1735 operator!=(const year& x, const year& y) NOEXCEPT
1743 operator<(const year& x, const year& y) NOEXCEPT
1751 operator>(const year& x, const year& y) NOEXCEPT
1759 operator<=(const year& x, const year& y) NOEXCEPT
1767 operator>=(const year& x, const year& y) NOEXCEPT
1775 operator-(const year& x, const year& y) NOEXCEPT
1782 year
1783 operator+(const year& x, const years& y) NOEXCEPT
1785 return year{static_cast<int>(x) + y.count()};
1790 year
1791 operator+(const years& x, const year& y) NOEXCEPT
1798 year
1799 operator-(const year& x, const years& y) NOEXCEPT
1801 return year{static_cast<int>(x) - y.count()};
1809 low_level_fmt(std::basic_ostream<CharT, Traits>& os, const year& y)
1814 os.width(4 + (y < year{0}));
1825 operator<<(std::basic_ostream<CharT, Traits>& os, const year& y)
1829 os << " is not a valid year";
1997 date::year
2000 return date::year(static_cast<int>(y));
2192 year_month::year_month(const date::year& y, const date::month& m) NOEXCEPT
2197 CONSTCD11 inline year year_month::year() const NOEXCEPT {return y_;}
2244 return x.year() == y.year() && x.month() == y.month();
2260 return x.year() < y.year() ? true
2261 : (x.year() > y.year() ? false
2298 return (ym.year() + years(dy)) / month(static_cast<unsigned>(dmi));
2324 return (x.year() - y.year()) +
2333 return (ym.year() + dy) / ym.month();
2359 low_level_fmt(os, ym.year()) << '/';
2694 year_month_day_last::year_month_day_last(const date::year& y,
2738 CONSTCD11 inline year year_month_day_last::year() const NOEXCEPT {return y_;}
2769 return sys_days(year()/month()/day());
2776 return local_days(year()/month()/day());
2792 return x.year() == y.year() && x.month_day_last() == y.month_day_last();
2808 return x.year() < y.year() ? true
2809 : (x.year() > y.year() ? false
2844 low_level_fmt(os, ymdl.year()) << '/';
2867 return (ymdl.year() / ymdl.month() + dm) / last;
2893 return {ymdl.year()+dy, ymdl.month_day_last()};
2916 year_month_day::year_month_day(const date::year& y, const date::month& m,
2926 : y_(ymdl.year())
2943 CONSTCD11 inline year year_month_day::year() const NOEXCEPT {return y_;}
3033 return x.year() == y.year() && x.month() == y.month() && x.day() == y.day();
3049 return x.year() < y.year() ? true
3050 : (x.year() > y.year() ? false
3089 os << static_cast<int>(ymd.year()) << '-';
3117 return year_month_day{date::year{y + (m <= 2)}, date::month(m), date::day(d)};
3126 return (ymd.year() / ymd.month() + dm) / ymd.day();
3152 return (ymd.year() + dy) / ymd.month() / ymd.day();
3175 year_month_weekday::year_month_weekday(const date::year& y, const date::month& m,
3233 CONSTCD11 inline year year_month_weekday::year() const NOEXCEPT {return y_;}
3296 return {ymd.year(), ymd.month(), wd[(static_cast<unsigned>(ymd.day())-1)/7+1]};
3314 return x.year() == y.year() && x.month() == y.month() &&
3331 detail::low_level_fmt(os, ymwdi.year()) << '/';
3345 return (ymwd.year() / ymwd.month() + dm) / ymwd.weekday_indexed();
3371 return {ymwd.year()+dy, ymwd.month(), ymwd.weekday_indexed()};
3394 year_month_weekday_last::year_month_weekday_last(const date::year& y,
3440 CONSTCD11 inline year year_month_weekday_last::year() const NOEXCEPT {return y_;}
3495 return x.year() == y.year() && x.month() == y.month() &&
3512 detail::low_level_fmt(os, ymwdl.year()) << '/';
3526 return (ymwdl.year() / ymwdl.month() + dm) / ymwdl.weekday_last();
3552 return {ymwdl.year()+dy, ymwdl.month(), ymwdl.weekday_last()};
3576 operator/(const year& y, const month& m) NOEXCEPT
3584 operator/(const year& y, int m) NOEXCEPT
3734 return {ym.year(), ym.month(), d};
3748 operator/(const year& y, const month_day& md) NOEXCEPT
3758 return year(y) / md;
3764 operator/(const month_day& md, const year& y) NOEXCEPT
3774 return year(y) / md;
3784 return {ym.year(), month_day_last{ym.month()}};
3790 operator/(const year& y, const month_day_last& mdl) NOEXCEPT
3800 return year(y) / mdl;
3806 operator/(const month_day_last& mdl, const year& y) NOEXCEPT
3816 return year(y) / mdl;
3826 return {ym.year(), ym.month(), wdi};
3832 operator/(const year& y, const month_weekday& mwd) NOEXCEPT
3842 return year(y) / mwd;
3848 operator/(const month_weekday& mwd, const year& y) NOEXCEPT
3858 return year(y) / mwd;
3868 return {ym.year(), ym.month(), wdl};
3874 operator/(const year& y, const month_weekday_last& mwdl) NOEXCEPT
3884 return year(y) / mwdl;
3890 operator/(const month_weekday_last& mwdl, const year& y) NOEXCEPT
3900 return year(y) / mwdl;
4795 CONSTDATA year nanyear{-32768};
5166 tm.tm_year = static_cast<int>(ymd.year()) - 1900;
5170 tm.tm_yday = static_cast<int>((ld - local_days(ymd.year()/1/1)).count());
5189 << ' ' << fds.ymd.year();
5203 os << static_cast<int>(ymd.year()) % 100;
5220 if (!fds.ymd.year().ok())
5222 auto y = static_cast<int>(fds.ymd.year());
5312 os << static_cast<int>(ymd.year()) % 100;
5337 os << static_cast<int>(ymd.year()) << CharT{'-'};
5362 auto y = year_month_day{ld + days{3}}.year();
5439 auto y = fds.ymd.year();
5780 auto st = local_days(Sunday[1]/January/ymd.year());
5795 tm.tm_year = static_cast<int>(ymd.year()) - 1900;
5799 tm.tm_yday = static_cast<int>((ld - local_days(ymd.year()/1/1)).count());
5824 auto y = year_month_day{ld + days{3}}.year();
5843 tm.tm_year = static_cast<int>(ymd.year()) - 1900;
5847 tm.tm_yday = static_cast<int>((ld - local_days(ymd.year()/1/1)).count());
5905 auto st = local_days(Monday[1]/January/ymd.year());
5920 tm.tm_year = static_cast<int>(ymd.year()) - 1900;
5924 tm.tm_yday = static_cast<int>((ld - local_days(ymd.year()/1/1)).count());
5968 if (!fds.ymd.year().ok())
5970 auto y = static_cast<int>(fds.ymd.year());
6001 if (!fds.ymd.year().ok())
6003 auto y = fds.ymd.year();
6144 to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const year& y)
7724 if (Y < static_cast<int>(year::min()) || Y > static_cast<int>(year::max()))
7729 year_month_day ymd_trial = sys_days(year{G-1}/December/Thursday[last]) +
7733 Y = static_cast<int>(ymd_trial.year());
7734 else if (year{Y} != ymd_trial.year())
7748 year_month_day ymd_trial = sys_days(year{Y}/January/Sunday[1]) +
7752 Y = static_cast<int>(ymd_trial.year());
7753 else if (year{Y} != ymd_trial.year())
7767 year_month_day ymd_trial = sys_days(year{Y}/January/Monday[1]) +
7771 Y = static_cast<int>(ymd_trial.year());
7772 else if (year{Y} != ymd_trial.year())
7786 auto ymd_trial = year_month_day{local_days(year{Y}/1/1) + days{j-1}};
7797 auto ymd = year{Y}/m/d;
7809 auto G_trial = year_month_day{sd + days{3}}.year();
7830 auto start = sys_days(Sunday[1]/January/ymd.year());
7837 auto start = sys_days(Monday[1]/January/ymd.year());
7917 from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt, year& y,
7924 if (!fds.ymd.year().ok())
7927 y = fds.ymd.year();
7991 ym = fds.ymd.year()/fds.ymd.month();