Home
last modified time | relevance | path

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

12345678910>>...262

/external/apache-xml/test/tests/perf-gold/basic/
Dbasic-datetranscode.out5 <year>1974</year>
10 <year>1974</year>
15 <year>1974</year>
20 <year>1974</year>
25 <year>1974</year>
30 <year>1974</year>
35 <year>1974</year>
40 <year>1974</year>
45 <year>1974</year>
50 <year>1974</year>
[all …]
/external/threetenbp/src/test/java/org/threeten/bp/temporal/
DTestYear.java37 import static org.threeten.bp.temporal.ChronoField.YEAR;
57 import org.threeten.bp.Year;
66 * Test Year.
71 private static final Year TEST_2008 = Year.of(2008);
88 YEAR, in validFields()
107 assertImmutable(Year.class); in test_immutable()
112 assertSerializable(Year.of(-1)); in test_serialization()
117 assertEqualsSerialisedForm(Year.of(2012)); in test_serialization_format()
125 Year expected = Year.now(Clock.systemDefaultZone()); in now()
126 Year test = Year.now(); in now()
[all …]
/external/threetenbp/src/main/java/org/threeten/bp/
DYear.java35 import static org.threeten.bp.temporal.ChronoField.YEAR;
72 * A year in the ISO-8601 calendar system, such as {@code 2007}.
74 * {@code Year} is an immutable date-time object that represents a year.
75 * Any field that can be derived from a year can be obtained.
83 * For example, the value "2007" can be stored in a {@code Year}.
86 * the proleptic numbering system. Year 1 is preceded by year 0, then by year -1.
98 public final class Year class
100 implements Temporal, TemporalAdjuster, Comparable<Year>, Serializable {
103 * The minimum supported year, '-999,999,999'.
107 * The maximum supported year, '+999,999,999'.
[all …]
DYearMonth.java37 import static org.threeten.bp.temporal.ChronoField.YEAR;
75 * A year-month in the ISO-8601 calendar system, such as {@code 2007-12}.
78 * of a year and month. Any field that can be derived from a year and month, such as
79 * quarter-of-year, can be obtained.
116 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
122 * The year.
124 private final int year; field in YearMonth
126 * The month-of-year, not null.
132 * Obtains the current year-month from the system clock in the default time-zone.
135 * time-zone to obtain the current year-month.
[all …]
/external/threetenbp/src/test/java/org/threeten/bp/format/
DTestReducedParser.java37 import static org.threeten.bp.temporal.ChronoField.YEAR;
55 … {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "12", -1, IndexOutOfBoundsException.class}, in data_error()
56 … {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "12", 3, IndexOutOfBoundsException.class}, in data_error()
84 {new ReducedPrinterParser(YEAR, 1, 1, 2010, null), "-0", 0, ~0, null}, in provider_parse()
87 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "Xxx12Xxx", 3, 5, 2012}, in provider_parse()
88 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "12345", 0, 2, 2012}, in provider_parse()
89 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "12-45", 0, 2, 2012}, in provider_parse()
92 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "0", 0, ~0, null}, in provider_parse()
93 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "1", 0, ~0, null}, in provider_parse()
94 {new ReducedPrinterParser(YEAR, 2, 2, 2010, null), "1", 1, ~1, null}, in provider_parse()
[all …]
/external/cronet/tot/third_party/libc++/src/test/std/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/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/cronet/stable/third_party/libc++/src/test/std/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/cronet/tot/third_party/libc++/src/include/__cxx03/__chrono/
Dyear.h31 class year {
36 year() = default;
37 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>… in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
[all …]
/external/cronet/stable/third_party/libc++/src/include/__chrono/
Dyear.h31 class year {
36 year() = default;
37 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>… in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
[all …]
/external/cronet/tot/third_party/libc++/src/include/__chrono/
Dyear.h31 class year {
36 year() = default;
37 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>… in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
[all …]
/external/cronet/stable/third_party/libc++/src/include/__cxx03/__chrono/
Dyear.h31 class year {
36 year() = default;
37 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>… in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year& operator+=(const years& __dy) noexcept;
[all …]
/external/python/google-api-python-client/docs/dyn/
Drealtimebidding_v1.buyers.userLists.html129year, month, and day values * A month and day value, with a zero year, such as an anniversary * A
130 … month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or…
131 …&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a m…
132 …&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a…
135year, month, and day values * A month and day value, with a zero year, such as an anniversary * A
136 … month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or…
137 …&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a m…
138 …&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a…
161year, month, and day values * A month and day value, with a zero year, such as an anniversary * A
162 … month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or…
[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/cldr/docs/site/development/development-process/design-proposals/
Dpattern-character-for-related-year.md2 title: Pattern character for “related year
5 # Pattern character for “related year
17year is different) such as the Japanese emperor-year calendar, the Gregorian year may be shown alo…
18year cycle but eras are not used, the formatted date is ambiguous (it is not clear which era it be…
19 …1. Along with (or instead of) the year name, use the Gregorian year in which the lunar-calendar ye…
20 …the 12th month of the lunar year ren-chen that began 2012-Jan-23, could be represented as 2012壬辰年腊…
21 …n the 1st month of the lunar year gui-si that began 2013-Feb-10, could be represented as 2013癸巳年正月…
22 …2. Along with the lunar year date (using the cyclic year name), show a complete year-month-day dat…
24year, which for any solar or luni-solar calendar would always be a fixed offset from the extended
30 …hs, year cycles](https://cldr.unicode.org/development/development-process/design-proposals/chinese…
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/
Ddate.rs7 mod year; module
12 use year::Year;
18 year: Year, field
31 let mut year = Year::new(1970); in today() localVariable
32 while days >= year.number_of_days().into() { in today()
33 year = year.next(); in today()
34 days -= i64::from(year.number_of_days()); in today()
37 while days >= month.number_of_days(year).into() { in today()
39 days -= i64::from(month.number_of_days(year)); in today()
42 year, in today()
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/fend-core-1.5.5/src/
Ddate.rs7 mod year; module
12 use year::Year;
18 year: Year, field
31 let mut year = Year::new(1970); in today() localVariable
32 while days >= year.number_of_days().into() { in today()
33 year = year.next(); in today()
34 days -= i64::from(year.number_of_days()); in today()
37 while days >= month.number_of_days(year).into() { in today()
39 days -= i64::from(month.number_of_days(year)); in today()
42 year, in today()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dostream.pass.cpp71 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'768}, std::chrono:… in test()
72 SV("-32768 is not a valid year/0 is not a valid month")); in test()
73 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'768}, std::chrono:… in test()
74 SV("-32768 is not a valid year/Jan")); in test()
75 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'767}, std::chrono:… in test()
77 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
79 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{1970}, std::chrono::mo… in test()
81 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{32'767}, std::chrono::… in test()
83 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
85 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
[all …]
/external/cronet/tot/third_party/libc++/src/test/std/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/
Dostream.pass.cpp71 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'768}, std::chrono:… in test()
72 SV("-32768 is not a valid year/0 is not a valid month")); in test()
73 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'768}, std::chrono:… in test()
74 SV("-32768 is not a valid year/Jan")); in test()
75 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{-32'767}, std::chrono:… in test()
77 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
79 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{1970}, std::chrono::mo… in test()
81 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{32'767}, std::chrono::… in test()
83 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
85 …TEST_EQUAL(stream_c_locale<CharT>(std::chrono::year_month{std::chrono::year{0}, std::chrono::month… in test()
[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 …]
/external/cronet/stable/third_party/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_t 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_t 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_t SecondsPerYear(int year) { in SecondsPerYear() argument
[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_t 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_t 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_t SecondsPerYear(int year) { in SecondsPerYear() argument
[all …]
/external/cronet/tot/third_party/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_t 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_t 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_t 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 …]
/external/cronet/stable/third_party/libc++/src/test/std/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};
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 …]

12345678910>>...262