Home
last modified time | relevance | path

Searched refs:YEAR (Results 1 – 25 of 355) sorted by relevance

12345678910>>...15

/external/icu/icu4c/source/test/testdata/
Dcalendar.txt31 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw
32 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg
36 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw
37 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg
41 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw
42 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg
48 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw
49 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg
57 "YEAR=1964,MONTH=8,DATE=4", // greg
62 "YEAR=1964,MONTH=8,DATE=5", // greg
[all …]
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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DPeriodTest.java26 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet()
28 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet()
30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet()
31 p = p.omit(TimeUnit.YEAR); in testIsSet()
32 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet()
37 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan()
50 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
54 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan()
58 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan()
63 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DPeriodTest.java29 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet()
31 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet()
33 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet()
34 p = p.omit(TimeUnit.YEAR); in testIsSet()
35 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet()
40 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan()
53 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
57 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan()
61 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan()
66 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast()
[all …]
/external/libtextclassifier/native/annotator/datetime/
Dregex-parser_test.cc92 .Add(DatetimeComponent::ComponentType::YEAR, 1988) in TEST_F()
102 .Add(DatetimeComponent::ComponentType::YEAR, 1988) in TEST_F()
109 .Add(DatetimeComponent::ComponentType::YEAR, 2018) in TEST_F()
116 .Add(DatetimeComponent::ComponentType::YEAR, 2018) in TEST_F()
126 .Add(DatetimeComponent::ComponentType::YEAR, 2004) in TEST_F()
137 .Add(DatetimeComponent::ComponentType::YEAR, 2010) in TEST_F()
147 .Add(DatetimeComponent::ComponentType::YEAR, 2011) in TEST_F()
177 .Add(DatetimeComponent::ComponentType::YEAR, 2010) in TEST_F()
186 .Add(DatetimeComponent::ComponentType::YEAR, 2010) in TEST_F()
198 .Add(DatetimeComponent::ComponentType::YEAR, 2006) in TEST_F()
[all …]
Dgrammar-parser_test.cc77 .Add(DatetimeComponent::ComponentType::YEAR, 2020) in TEST_F()
88 .Add(DatetimeComponent::ComponentType::YEAR, 2020) in TEST_F()
96 .Add(DatetimeComponent::ComponentType::YEAR, 1988) in TEST_F()
106 .Add(DatetimeComponent::ComponentType::YEAR, 1988) in TEST_F()
113 .Add(DatetimeComponent::ComponentType::YEAR, 2018) in TEST_F()
120 .Add(DatetimeComponent::ComponentType::YEAR, 2018) in TEST_F()
130 .Add(DatetimeComponent::ComponentType::YEAR, 2004) in TEST_F()
141 .Add(DatetimeComponent::ComponentType::YEAR, 2010) in TEST_F()
151 .Add(DatetimeComponent::ComponentType::YEAR, 2011) in TEST_F()
163 .Add(DatetimeComponent::ComponentType::YEAR, 2010) in TEST_F()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGregorianCalendar.java399 set(YEAR, year); in GregorianCalendar()
421 set(YEAR, year); in GregorianCalendar()
447 set(YEAR, year); in GregorianCalendar()
582 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll()
628 case YEAR: in getActualMaximum()
658 int lowGood = LIMITS[YEAR][1]; in getActualMaximum()
659 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum()
662 cal.set(YEAR, y); in getActualMaximum()
663 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
779 internalSet(YEAR, eyear); in handleComputeFields()
[all …]
DTaiwanCalendar.java187 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear()
193 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
195 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
209 internalSet(YEAR, y); in handleComputeFields()
212 internalSet(YEAR, 1- y); in handleComputeFields()
DJapaneseCalendar.java271 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
276 …year = internalGet(YEAR, 1) // pin to minimum of year 1 (first… in handleGetExtendedYear()
338 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()
409 case YEAR: in handleGetLimit()
452 if (field == YEAR) { in getActualMaximum()
456 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
DHebrewCalendar.java345 this.set(YEAR, year); in HebrewCalendar()
384 this.set(YEAR, year); in HebrewCalendar()
437 int year = get(YEAR); in add()
469 set(YEAR, year); in add()
518 int year = get(YEAR); in roll()
802 internalSet(YEAR, year); in handleComputeFields()
818 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
821 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
DEthiopicCalendar.java279 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
282 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
288 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
290 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
326 internalSet(YEAR, year); in handleComputeFields()
DCopticCalendar.java230 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
236 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear()
238 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
270 internalSet(YEAR, year); in handleComputeFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java411 set(YEAR, year); in GregorianCalendar()
434 set(YEAR, year); in GregorianCalendar()
461 set(YEAR, year); in GregorianCalendar()
602 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll()
650 case YEAR: in getActualMaximum()
680 int lowGood = LIMITS[YEAR][1]; in getActualMaximum()
681 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum()
684 cal.set(YEAR, y); in getActualMaximum()
685 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
804 internalSet(YEAR, eyear); in handleComputeFields()
[all …]
DTaiwanCalendar.java200 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear()
206 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
208 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
223 internalSet(YEAR, y); in handleComputeFields()
226 internalSet(YEAR, 1- y); in handleComputeFields()
DJapaneseCalendar.java282 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
287 …year = internalGet(YEAR, 1) // pin to minimum of year 1 (first… in handleGetExtendedYear()
352 internalSet(YEAR, year - ERA_RULES.getStartYear(eraIdx) + 1); in handleComputeFields()
427 case YEAR: in handleGetLimit()
471 if (field == YEAR) { in getActualMaximum()
475 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
DHebrewCalendar.java365 this.set(YEAR, year); in HebrewCalendar()
406 this.set(YEAR, year); in HebrewCalendar()
460 int year = get(YEAR); in add()
492 set(YEAR, year); in add()
542 int year = get(YEAR); in roll()
828 internalSet(YEAR, year); in handleComputeFields()
845 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
848 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
DEthiopicCalendar.java304 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
307 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
313 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
315 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
351 internalSet(YEAR, year); in handleComputeFields()
DCopticCalendar.java252 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
258 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year in handleGetExtendedYear()
260 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
291 internalSet(YEAR, year); in handleComputeFields()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java193 int y = cal.get(Calendar.YEAR); in quasiGregorianTest()
196 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
200 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
521 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference()
529 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference()
654 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd()
748 cal.set(Calendar.YEAR, test.womyear); in TestJB1684()
903 bcal.add(Calendar.YEAR, 1); in TestCoverage()
916 ccal.add(Calendar.YEAR, 1); in TestCoverage()
918 ccal.roll(Calendar.YEAR, 1); in TestCoverage()
[all …]
DHebrewTest.java75 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll()
80 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll()
245 calendar.set(Calendar.YEAR, 5717); in TestTimeFields()
272 cal.set(Calendar.YEAR, year); in TestElulMonth()
276 int yact = cal.get(Calendar.YEAR); in TestElulMonth()
327 cal.set(Calendar.YEAR, y); in TestMonthMovement()
330 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement()
337 cal.set(Calendar.YEAR, y); in TestMonthMovement()
344 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement()
349 cal.set(Calendar.YEAR, y); in TestMonthMovement()
[all …]
DJapaneseTest.java117 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage()
118 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage()
120 cal.add(Calendar.YEAR, 1); in TestCoverage()
169 int gotYear = cal.get(Calendar.YEAR); in Test3860()
202 gotYear = cal2.get(Calendar.YEAR); in Test3860()
363 Calendar.YEAR, 45 }; in Test5345calendar()
378 c.set(Calendar.YEAR, 1); in Test5345calendar()
389 c.set(Calendar.YEAR, 1); in Test5345calendar()
400 c.set(Calendar.YEAR, 1); in Test5345calendar()
405 Calendar.YEAR, 1 }; in Test5345calendar()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java196 int y = cal.get(Calendar.YEAR); in quasiGregorianTest()
199 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
203 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
524 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference()
532 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference()
657 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd()
751 cal.set(Calendar.YEAR, test.womyear); in TestJB1684()
906 bcal.add(Calendar.YEAR, 1); in TestCoverage()
919 ccal.add(Calendar.YEAR, 1); in TestCoverage()
921 ccal.roll(Calendar.YEAR, 1); in TestCoverage()
[all …]
DHebrewTest.java78 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll()
83 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll()
248 calendar.set(Calendar.YEAR, 5717); in TestTimeFields()
275 cal.set(Calendar.YEAR, year); in TestElulMonth()
279 int yact = cal.get(Calendar.YEAR); in TestElulMonth()
330 cal.set(Calendar.YEAR, y); in TestMonthMovement()
333 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement()
340 cal.set(Calendar.YEAR, y); in TestMonthMovement()
347 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement()
352 cal.set(Calendar.YEAR, y); in TestMonthMovement()
[all …]
DJapaneseTest.java120 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage()
121 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage()
123 cal.add(Calendar.YEAR, 1); in TestCoverage()
172 int gotYear = cal.get(Calendar.YEAR); in Test3860()
205 gotYear = cal2.get(Calendar.YEAR); in Test3860()
366 Calendar.YEAR, 45 }; in Test5345calendar()
381 c.set(Calendar.YEAR, 1); in Test5345calendar()
392 c.set(Calendar.YEAR, 1); in Test5345calendar()
403 c.set(Calendar.YEAR, 1); in Test5345calendar()
408 Calendar.YEAR, 1 }; in Test5345calendar()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DDateDeserializationTest.java161 assertEquals(1972, c.get(Calendar.YEAR)); in testDateUtilISO8601()
169 assertEquals(1972, c.get(Calendar.YEAR)); in testDateUtilISO8601()
177 assertEquals(1972, c.get(Calendar.YEAR)); in testDateUtilISO8601()
185 assertEquals(1972, c.get(Calendar.YEAR)); in testDateUtilISO8601()
192 assertEquals(1984, c.get(Calendar.YEAR)); in testDateUtilISO8601()
207 assertEquals(2014, c.get(Calendar.YEAR)); in testISO8601PartialMilliseconds()
215 assertEquals(2014, c.get(Calendar.YEAR)); in testISO8601PartialMilliseconds()
226 assertEquals(1997, c.get(Calendar.YEAR)); in testISO8601PartialMilliseconds()
238 assertEquals(1997, c.get(Calendar.YEAR)); in testISO8601PartialMilliseconds()
250 assertEquals(1997, c.get(Calendar.YEAR)); in testISO8601PartialMilliseconds()
[all …]

12345678910>>...15