| /external/apache-xml/test/tests/perf-gold/basic/ |
| D | basic-datetranscode.out | 5 <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/ |
| D | TestYear.java | 37 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/ |
| D | Year.java | 35 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 …]
|
| D | YearMonth.java | 37 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/ |
| D | TestReducedParser.java | 37 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/ |
| D | ok.pass.cpp | 25 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/ |
| D | ok.pass.cpp | 25 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/ |
| D | ok.pass.cpp | 25 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/ |
| D | year.h | 31 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/ |
| D | year.h | 31 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/ |
| D | year.h | 31 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/ |
| D | year.h | 31 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/ |
| D | realtimebidding_v1.buyers.userLists.html | 129 …year, 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 …"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a m… 132 …"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a… 135 …year, 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 …"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a m… 138 …"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a… 161 …year, 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/ |
| D | comparisons.pass.cpp | 15 // 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/ |
| D | pattern-character-for-related-year.md | 2 title: Pattern character for “related year” 5 # Pattern character for “related year” 17 …year is different) such as the Japanese emperor-year calendar, the Gregorian year may be shown alo… 18 …year 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… 24 …year, 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/ |
| D | date.rs | 7 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/ |
| D | date.rs | 7 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/ |
| D | ostream.pass.cpp | 71 …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/ |
| D | ostream.pass.cpp | 71 …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/ |
| D | ok.pass.cpp | 12 // 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/ |
| D | time.cc | 27 // 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/ |
| D | time.cc | 27 // 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/ |
| D | time.cc | 27 // 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/ |
| D | year_month_day_last.pass.cpp | 15 // 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/ |
| D | ok.pass.cpp | 11 // 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 …]
|