Home
last modified time | relevance | path

Searched full:year (Results 1 – 25 of 3331) sorted by relevance

12345678910>>...134

/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dok.pass.cpp25 using year = std::chrono::year; in main() typedef
35 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main()
37 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main()
38 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main()
39 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main()
41 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main()
42 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main()
43 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main()
45 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main()
48 static_assert( year_month_day{year{2020}, month{ 1}, day{31}}.ok(), ""); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/
Dok.pass.cpp24 using year = std::chrono::year; in main() typedef
34 static_assert(!year_month_day{year{-32768}, month{}, day{}}.ok(), ""); // All three bad in main()
36 static_assert(!year_month_day{year{-32768}, January, day{1}}.ok(), ""); // Bad year in main()
37 static_assert(!year_month_day{year{2019}, month{}, day{1}}.ok(), ""); // Bad month in main()
38 static_assert(!year_month_day{year{2019}, January, day{} }.ok(), ""); // Bad day in main()
40 static_assert(!year_month_day{year{-32768}, month{}, day{1}}.ok(), ""); // Bad year & month in main()
41 static_assert(!year_month_day{year{2019}, month{}, day{} }.ok(), ""); // Bad month & day in main()
42 static_assert(!year_month_day{year{-32768}, January, day{} }.ok(), ""); // Bad year & day in main()
44 static_assert( year_month_day{year{2019}, January, day{1}}.ok(), ""); // All OK in main()
47 static_assert( year_month_day{year{2020}, month{ 1}, day{31}}.ok(), ""); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dcomparisons.pass.cpp14 // Returns: x.year() == y.year() && x.month() == y.month().
18 // If x.year() < y.year() returns true.
19 // Otherwise, if x.year() > y.year() returns false.
35 using year = std::chrono::year; in main() typedef
46 year_month_day{year{1234}, January, day{1}}, in main()
47 year_month_day{year{1234}, January, day{1}}, in main()
52 year_month_day{year{1234}, January, day{1}}, in main()
53 year_month_day{year{1234}, January, day{2}}, in main()
58 year_month_day{year{1234}, January, day{1}}, in main()
59 year_month_day{year{1234}, February, day{1}}, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/
Dcomparisons.pass.cpp15 // Returns: x.year() == y.year() && x.month() == y.month().
19 // If x.year() < y.year() returns true.
20 // Otherwise, if x.year() > y.year() returns false.
36 using year = std::chrono::year; in main() typedef
47 year_month_day{year{1234}, January, day{1}}, in main()
48 year_month_day{year{1234}, January, day{1}}, in main()
53 year_month_day{year{1234}, January, day{1}}, in main()
54 year_month_day{year{1234}, January, day{2}}, in main()
59 year_month_day{year{1234}, January, day{1}}, in main()
60 year_month_day{year{1234}, February, day{1}}, in main()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dtime.cc27 // Count the seconds from the given year (start at Jan 1, 00:00) to 100 years
29 int64 SecondsPer100Years(int year) { in SecondsPer100Years() argument
30 if (year % 400 == 0 || year % 400 > 300) { in SecondsPer100Years()
37 // Count the seconds from the given year (start at Jan 1, 00:00) to 4 years
39 int64 SecondsPer4Years(int year) { in SecondsPer4Years() argument
40 if ((year % 100 == 0 || year % 100 > 96) && in SecondsPer4Years()
41 !(year % 400 == 0 || year % 400 > 396)) { in SecondsPer4Years()
50 bool IsLeapYear(int year) { in IsLeapYear() argument
51 return year % 400 == 0 || (year % 4 == 0 && year % 100 != 0); in IsLeapYear()
54 int64 SecondsPerYear(int year) { in SecondsPerYear() argument
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day_last.pass.cpp15 // Returns: {ym.year(), month_day_last{ym.month()}}.
19 // operator/(const year& y, const month_day_last& mdl) noexcept;
24 // Returns: year(y) / mdl.
27 // operator/(const month_day_last& mdl, const year& y) noexcept;
32 // Returns: year(y) / mdl.
46 using year = std::chrono::year; in main() typedef
54 constexpr year_month Feb2018{year{2018}, February}; in main()
59 static_assert((Feb2018/last).year() == year{2018}, ""); in main()
65 year y{i}; in main()
68 assert(ymdl.year() == y); in main()
[all …]
Dyear_month_weekday_last.pass.cpp16 // Returns: {ym.year(), ym.month(), wdl}.
19 // operator/(const year& y, const month_weekday_last& mwdl) noexcept;
24 // Returns: year(y) / mwdl.
27 // operator/(const month_weekday_last& mwdl, const year& y) noexcept;
32 // Returns: year(y) / mwdl.
46 using year = std::chrono::year; in main() typedef
57 constexpr year_month Feb2018{year{2018}, February}; in main()
62 static_assert((Feb2018/weekday_last{Tuesday}).year() == year{2018}, ""); in main()
70 year y{i}; in main()
74 assert(ymwdl.year() == y); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/
Dok.pass.cpp11 // class year;
16 // static constexpr year min() noexcept;
17 // Returns year{ 32767};
18 // static constexpr year max() noexcept;
19 // Returns year{-32767};
29 using year = std::chrono::year; in main() typedef
31 ASSERT_NOEXCEPT( std::declval<const year>().ok()); in main()
32 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year>().ok())); in main()
34 ASSERT_NOEXCEPT( year::max()); in main()
35 ASSERT_SAME_TYPE(year, decltype(year::max())); in main()
[all …]
Dis_leap.pass.cpp11 // class year;
25 using year = std::chrono::year; in main() typedef
27 ASSERT_NOEXCEPT( year(1).is_leap()); in main()
28 ASSERT_SAME_TYPE(bool, decltype(year(1).is_leap())); in main()
30 static_assert(!year{1}.is_leap(), ""); in main()
31 static_assert(!year{2}.is_leap(), ""); in main()
32 static_assert(!year{3}.is_leap(), ""); in main()
33 static_assert( year{4}.is_leap(), ""); in main()
35 assert( year{-2000}.is_leap()); in main()
36 assert( year{ -400}.is_leap()); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.members/
Dok.pass.cpp12 // class year;
17 // static constexpr year min() noexcept;
18 // Returns year{ 32767};
19 // static constexpr year max() noexcept;
20 // Returns year{-32767};
30 using year = std::chrono::year; in main() typedef
32 ASSERT_NOEXCEPT( std::declval<const year>().ok()); in main()
33 ASSERT_SAME_TYPE(bool, decltype(std::declval<const year>().ok())); in main()
35 ASSERT_NOEXCEPT( year::max()); in main()
36 ASSERT_SAME_TYPE(year, decltype(year::max())); in main()
[all …]
Dis_leap.pass.cpp12 // class year;
26 using year = std::chrono::year; in main() typedef
28 ASSERT_NOEXCEPT( year(1).is_leap()); in main()
29 ASSERT_SAME_TYPE(bool, decltype(year(1).is_leap())); in main()
31 static_assert(!year{1}.is_leap(), ""); in main()
32 static_assert(!year{2}.is_leap(), ""); in main()
33 static_assert(!year{3}.is_leap(), ""); in main()
34 static_assert( year{4}.is_leap(), ""); in main()
36 assert( year{-2000}.is_leap()); in main()
37 assert( year{ -400}.is_leap()); in main()
[all …]
/external/python/cpython2/Demo/classes/
DDates.py3 # Date(month,day,year) returns a Date object. An instance prints as,
22 # .year int or long int
30 # hand, at least this package knows that 2000 is a leap year but 2100
62 def _is_leap(year): # 1 if leap year, else 0 argument
63 if year % 4 != 0: return 0
64 if year % 400 == 0: return 1
65 return year % 100 != 0
67 def _days_in_year(year): # number of days in year argument
68 return 365 + _is_leap(year)
70 def _days_before_year(year): # number of days before year argument
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.operators/
Dyear_month_day_last.pass.cpp14 // Returns: {ym.year(), month_day_last{ym.month()}}.
18 // operator/(const year& y, const month_day_last& mdl) noexcept;
23 // Returns: year(y) / mdl.
26 // operator/(const month_day_last& mdl, const year& y) noexcept;
31 // Returns: year(y) / mdl.
46 using year = std::chrono::year; in main() typedef
54 constexpr year_month Feb2018{year{2018}, February}; in main()
59 static_assert((Feb2018/last).year() == year{2018}, ""); in main()
65 year y{i}; in main()
68 assert(ymdl.year() == y); in main()
[all …]
Dyear_month_weekday_last.pass.cpp15 // Returns: {ym.year(), ym.month(), wdl}.
18 // operator/(const year& y, const month_weekday_last& mwdl) noexcept;
23 // Returns: year(y) / mwdl.
26 // operator/(const month_weekday_last& mwdl, const year& y) noexcept;
31 // Returns: year(y) / mwdl.
45 using year = std::chrono::year; in main() typedef
56 constexpr year_month Feb2018{year{2018}, February}; in main()
61 static_assert((Feb2018/weekday_last{Tuesday}).year() == year{2018}, ""); in main()
69 year y{i}; in main()
73 assert(ymwdl.year() == y); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/
Dcomparisons.pass.cpp14 // Returns: x.year() == y.year() && x.month() == y.month() && x.weekday_indexed() == y.weekday_in…
27 using year = std::chrono::year; in main() typedef
41 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
42 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
47 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
48 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 2}}, in main()
53 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
54 year_month_weekday{year{1234}, February, weekday_indexed{Tuesday, 1}}, in main()
57 // different year in main()
59 year_month_weekday{year{1234}, January, weekday_indexed{Tuesday, 1}}, in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dcomparisons.pass.cpp14 // Returns: x.year() == y.year() && x.month() == y.month() && x.weekday_last() == y.weekday_last()
27 using year = std::chrono::year; in main() typedef
42 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
43 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
48 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
49 year_month_weekday_last{year{1234}, January, weekday_last{Wednesday}}, in main()
54 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
55 year_month_weekday_last{year{1234}, February, weekday_last{Tuesday}}, in main()
58 // different year in main()
60 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/
Dcomparisons.pass.cpp15 // Returns: x.year() == y.year() && x.month() == y.month() && x.weekday_last() == y.weekday_last()
28 using year = std::chrono::year; in main() typedef
43 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
44 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
49 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
50 year_month_weekday_last{year{1234}, January, weekday_last{Wednesday}}, in main()
55 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
56 year_month_weekday_last{year{1234}, February, weekday_last{Tuesday}}, in main()
59 // different year in main()
61 year_month_weekday_last{year{1234}, January, weekday_last{Tuesday}}, in main()
[all …]
/external/python/cpython3/Doc/library/
Dcalendar.rst27 interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
50 .. method:: itermonthdates(year, month)
52 Return an iterator for the month *month* (1--12) in the year *year*. This
58 .. method:: itermonthdays(year, month)
60 Return an iterator for the month *month* in the year *year* similar to
66 .. method:: itermonthdays2(year, month)
68 Return an iterator for the month *month* in the year *year* similar to
74 .. method:: itermonthdays3(year, month)
76 Return an iterator for the month *month* in the year *year* similar to
78 range. Days returned will be tuples consisting of a year, a month and a day
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/
Dcomparisons.pass.cpp12 // class year;
14 // constexpr bool operator==(const year& x, const year& y) noexcept;
15 // constexpr bool operator!=(const year& x, const year& y) noexcept;
16 // constexpr bool operator< (const year& x, const year& y) noexcept;
17 // constexpr bool operator> (const year& x, const year& y) noexcept;
18 // constexpr bool operator<=(const year& x, const year& y) noexcept;
19 // constexpr bool operator>=(const year& x, const year& y) noexcept;
32 using year = std::chrono::year; in main() typedef
34 AssertComparisons6AreNoexcept<year>(); in main()
35 AssertComparisons6ReturnBool<year>(); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.year/time.cal.year.nonmembers/
Dcomparisons.pass.cpp11 // class year;
13 // constexpr bool operator==(const year& x, const year& y) noexcept;
14 // constexpr bool operator!=(const year& x, const year& y) noexcept;
15 // constexpr bool operator< (const year& x, const year& y) noexcept;
16 // constexpr bool operator> (const year& x, const year& y) noexcept;
17 // constexpr bool operator<=(const year& x, const year& y) noexcept;
18 // constexpr bool operator>=(const year& x, const year& y) noexcept;
31 using year = std::chrono::year; in main() typedef
33 AssertComparisons6AreNoexcept<year>(); in main()
34 AssertComparisons6ReturnBool<year>(); in main()
[all …]
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dcomparisons.pass.cpp15 // Returns: x.year() == y.year() && x.month_day_last() == y.month_day_last().
19 // If x.year() < y.year(), returns true.
20 // Otherwise, if x.year() > y.year(), returns false.
32 using year = std::chrono::year; in main() typedef
44 year_month_day_last{year{1234}, month_day_last{January}}, in main()
45 year_month_day_last{year{1234}, month_day_last{January}}, in main()
50 year_month_day_last{year{1234}, month_day_last{January}}, in main()
51 year_month_day_last{year{1234}, month_day_last{February}}, in main()
54 // different year in main()
56 year_month_day_last{year{1234}, month_day_last{January}}, in main()
[all …]
/external/icu/icu4c/source/test/testdata/
Dformat.txt29 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc…
39 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0",
46 "ERA=1,YEAR=98,MONTH=0,DATE=24",
54 "ERA=0,YEAR=2,MONTH=0,DATE=24",
96 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
104 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
119 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
127 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
151 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
159 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
[all …]
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/
Dcomparisons.pass.cpp14 // Returns: x.year() == y.year() && x.month_day_last() == y.month_day_last().
18 // If x.year() < y.year(), returns true.
19 // Otherwise, if x.year() > y.year(), returns false.
31 using year = std::chrono::year; in main() typedef
43 year_month_day_last{year{1234}, month_day_last{January}}, in main()
44 year_month_day_last{year{1234}, month_day_last{January}}, in main()
49 year_month_day_last{year{1234}, month_day_last{January}}, in main()
50 year_month_day_last{year{1234}, month_day_last{February}}, in main()
53 // different year in main()
55 year_month_day_last{year{1234}, month_day_last{January}}, in main()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCopticCalendar.java32 * the 1st month of the Coptic year.
39 * the 2nd month of the Coptic year.
46 * the 3rd month of the Coptic year.
53 * the 4th month of the Coptic year.
60 * the 5th month of the Coptic year.
67 * the 6th month of the Coptic year.
74 * the 7th month of the Coptic year.
81 * the 8th month of the Coptic year.
88 * the 9th month of the Coptic year.
95 * the 10th month of the Coptic year.
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCopticCalendar.java32 * the 1st month of the Coptic year.
38 * the 2nd month of the Coptic year.
44 * the 3rd month of the Coptic year.
50 * the 4th month of the Coptic year.
56 * the 5th month of the Coptic year.
62 * the 6th month of the Coptic year.
68 * the 7th month of the Coptic year.
74 * the 8th month of the Coptic year.
80 * the 9th month of the Coptic year.
86 * the 10th month of the Coptic year.
[all …]

12345678910>>...134