Home
last modified time | relevance | path

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

12345678910

/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()
36 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan()
49 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan()
53 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan()
57 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f); in testMoreLessThan()
61 Period p = Period.at(1, TimeUnit.YEAR).inFuture(); in testFuturePast()
[all …]
/external/icu/icu4c/source/test/testdata/
Dcalendar.txt29 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw
30 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg
34 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw
35 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg
39 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw
40 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg
46 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw
47 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg
55 "YEAR=1964,MONTH=8,DATE=4", // greg
60 "YEAR=1964,MONTH=8,DATE=5", // greg
[all …]
Dformat.txt27 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc…
37 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0",
44 "ERA=1,YEAR=98,MONTH=0,DATE=24",
52 "ERA=0,YEAR=2,MONTH=0,DATE=24",
94 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
102 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
117 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
125 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
149 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
157 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java409 set(YEAR, year); in GregorianCalendar()
432 set(YEAR, year); in GregorianCalendar()
459 set(YEAR, year); in GregorianCalendar()
600 set(YEAR, isoYear); // Why not YEAR_WOY? - Alan 11/6/00 in roll()
648 case YEAR: in getActualMaximum()
678 int lowGood = LIMITS[YEAR][1]; in getActualMaximum()
679 int highBad = LIMITS[YEAR][2]+1; in getActualMaximum()
682 cal.set(YEAR, y); in getActualMaximum()
683 if (cal.get(YEAR) == y && cal.get(ERA) == era) { in getActualMaximum()
802 internalSet(YEAR, eyear); in handleComputeFields()
[all …]
DTaiwanCalendar.java198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR in handleGetExtendedYear()
204 year = internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
206 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START; in handleGetExtendedYear()
221 internalSet(YEAR, y); in handleComputeFields()
224 internalSet(YEAR, 1- y); in handleComputeFields()
DJapaneseCalendar.java218 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR && in handleGetExtendedYear()
223 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear()
320 internalSet(YEAR, year - ERAS[low*3] + 1); in handleComputeFields()
613 case YEAR: in handleGetLimit()
654 if (field == YEAR) { in getActualMaximum()
658 return handleGetLimit(YEAR, MAXIMUM); in getActualMaximum()
DHebrewCalendar.java363 this.set(YEAR, year); in HebrewCalendar()
404 this.set(YEAR, year); in HebrewCalendar()
457 int year = get(YEAR); in add()
489 set(YEAR, year); in add()
538 int year = get(YEAR); in roll()
818 internalSet(YEAR, year); in handleComputeFields()
834 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
837 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
DEthiopicCalendar.java302 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
305 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA) in handleGetExtendedYear()
311 eyear = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
313 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA; in handleGetExtendedYear()
349 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()
DPersianCalendar.java224 this.set(Calendar.YEAR, year); in PersianCalendar()
253 this.set(Calendar.YEAR, year); in PersianCalendar()
391 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
394 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear()
434 internalSet(YEAR, year); in handleComputeFields()
DBuddhistCalendar.java198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
201 year = internalGet(YEAR, GREGORIAN_EPOCH - BUDDHIST_ERA_START) in handleGetExtendedYear()
222 internalSet(YEAR, y); in handleComputeFields()
DEasterHoliday.java216 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround in doFirstBetween()
217 calendar.add(Calendar.YEAR, 1); in doFirstBetween()
250 int year = cal.get(Calendar.YEAR); in computeInYear()
275 cal.set(Calendar.YEAR, year); in computeInYear()
DIndianCalendar.java256 this.set(Calendar.YEAR, year); in IndianCalendar()
285 this.set(Calendar.YEAR, year); in IndianCalendar()
313 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) { in handleGetExtendedYear()
317 year = internalGet(YEAR, 1); in handleGetExtendedYear()
394 internalSet(YEAR, IndianYear); in handleComputeFields()
DTimeUnit.java38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values()
62 return YEAR; in readResolve()
DSimpleDateRule.java125 c.setTime(computeInYear(c.get(Calendar.YEAR), c)); in isOn()
152 int year = c.get(Calendar.YEAR); in doFirstBetween()
182 c.set(Calendar.YEAR, year); in computeInYear()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DJapaneseTest.java111 logln("min year: " + cal.getMinimum(Calendar.YEAR)); in TestCoverage()
112 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR)); in TestCoverage()
114 cal.add(Calendar.YEAR, 1); in TestCoverage()
158 int gotYear = cal.get(Calendar.YEAR); in Test3860()
191 gotYear = cal2.get(Calendar.YEAR); in Test3860()
284 Calendar.YEAR, 45 }; in Test5345calendar()
299 c.set(Calendar.YEAR, 1); in Test5345calendar()
310 c.set(Calendar.YEAR, 1); in Test5345calendar()
321 c.set(Calendar.YEAR, 1); in Test5345calendar()
326 Calendar.YEAR, 1 }; in Test5345calendar()
[all …]
DIBMCalendarTest.java185 int y = cal.get(Calendar.YEAR); in quasiGregorianTest()
188 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
192 cal.get(Calendar.YEAR) + "/" + in quasiGregorianTest()
503 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference()
511 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference()
633 cal.set(Calendar.YEAR, 2002); in TestTimeZoneTransitionAdd()
726 cal.set(Calendar.YEAR, test.womyear); in TestJB1684()
878 bcal.add(Calendar.YEAR, 1); in TestCoverage()
891 ccal.add(Calendar.YEAR, 1); in TestCoverage()
893 ccal.roll(Calendar.YEAR, 1); in TestCoverage()
[all …]
DHebrewTest.java71 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 }, in TestRoll()
76 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 }, in TestRoll()
238 calendar.set(Calendar.YEAR, 5717); in TestTimeFields()
264 cal.set(Calendar.YEAR, year); in TestElulMonth()
268 int yact = cal.get(Calendar.YEAR); in TestElulMonth()
318 cal.set(Calendar.YEAR, y); in TestMonthMovement()
321 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1; in TestMonthMovement()
328 cal.set(Calendar.YEAR, y); in TestMonthMovement()
335 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR)); in TestMonthMovement()
340 cal.set(Calendar.YEAR, y); in TestMonthMovement()
[all …]
DCompatibilityTest.java98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover()
200 year2 = cal.get(Calendar.YEAR); in TestMapping()
221 year2 = cal.get(Calendar.YEAR); in TestMapping()
255 int year2 = cal.get(Calendar.YEAR); in auxMapping()
373 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI()
455 if (gc.get(Calendar.YEAR) != year || in TestRog()
521 c.set(Calendar.YEAR, 1997); in TestDisambiguation765()
528 c.set(Calendar.YEAR, 1997); in TestDisambiguation765()
535 c.set(Calendar.YEAR, 1997); in TestDisambiguation765()
544 c.set(Calendar.YEAR, 1997); in TestDisambiguation765()
[all …]
DHolidayTest.java211 int year = fCalendar.get(Calendar.YEAR); in startOfMonth()
216 fCalendar.set(Calendar.YEAR, year); in startOfMonth()
275 assertEquals("Easter's year: ", 2014, c.get(Calendar.YEAR)); in TestEaster()
287 gcal.set(Calendar.YEAR, 2000); in TestIsOn()
301 gcal.set(Calendar.YEAR, 1957); in TestIsOn()
303 gcal.set(Calendar.YEAR, 1958); in TestIsOn()
305 gcal.set(Calendar.YEAR, 2058); in TestIsOn()
307 gcal.set(Calendar.YEAR, 2059); in TestIsOn()
DIslamicTest.java65 { 0002, HIJJAH, 30, YEAR, -1, 0001, HIJJAH, 29 }, in TestRoll()
136 cal.get(YEAR) + "/" + in TestBasic()
142 cal.get(YEAR) + "/" + in TestBasic()
172 cal.set(IslamicCalendar.YEAR,1431); in Test7427()
176 ( cal.get(IslamicCalendar.YEAR) != 1432 )) { in Test7427()
178 cal.get(IslamicCalendar.MONTH) + " Year:" + cal.get(IslamicCalendar.YEAR)); in Test7427()
272 cal.add(Calendar.YEAR, 1); in TestCoverage()
341 int year = cal.get(Calendar.YEAR); in setAndTestCalendar()
826 year = tstCal.get(Calendar.YEAR); in TestIslamicUmAlQura()
867 int is_year = is_cal.get(Calendar.YEAR); in TestIslamicUmAlQura()
[all …]
/external/libmtp/
Dhotplug.sh.in160 YEAR=`echo ${DATE} | awk 'BEGIN { FS="/"} {print $1; }'`
163 if [ "${YEAR}" -gt "2002" ]; then
166 if [ "${YEAR}" -eq "2002" ]; then
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DTimeUnitConstants.java15 public static final TimeUnit YEAR = TimeUnit.YEAR; field
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRelativeDateTimeFormatterTest.java357 {Direction.NEXT, AbsoluteUnit.YEAR, "next year"}, in TestRelativeDateWithoutQuantity()
371 {Direction.LAST, AbsoluteUnit.YEAR, "last year"}, in TestRelativeDateWithoutQuantity()
383 {Direction.THIS, AbsoluteUnit.YEAR, "this year"}, in TestRelativeDateWithoutQuantity()
395 {Direction.PLAIN, AbsoluteUnit.YEAR, "year"}, in TestRelativeDateWithoutQuantity()
420 {Direction.NEXT, AbsoluteUnit.YEAR, "Next year"}, in TestRelativeDateWithoutQuantityCaps()
435 {Direction.LAST, AbsoluteUnit.YEAR, "Last year"}, in TestRelativeDateWithoutQuantityCaps()
447 {Direction.THIS, AbsoluteUnit.YEAR, "This year"}, in TestRelativeDateWithoutQuantityCaps()
459 {Direction.PLAIN, AbsoluteUnit.YEAR, "Year"}, in TestRelativeDateWithoutQuantityCaps()
490 {Direction.NEXT, AbsoluteUnit.YEAR, "next yr."}, in TestRelativeDateWithoutQuantityShort()
506 {Direction.LAST, AbsoluteUnit.YEAR, "last yr."}, in TestRelativeDateWithoutQuantityShort()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java623 } else if ( fromCalendar.get(Calendar.YEAR) != in getPatterns()
624 toCalendar.get(Calendar.YEAR) ) { in getPatterns()
625 field = Calendar.YEAR; in getPatterns()
679 } else if ( fromCalendar.get(Calendar.YEAR) != in format()
680 toCalendar.get(Calendar.YEAR) ) { in format()
681 field = Calendar.YEAR; in format()
1062 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.YEAR], ptn); in initializeIntervalPattern()
1104 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.YEAR], ptn); in initializeIntervalPattern()
1129 if ( !fieldExistsInSkeleton(Calendar.YEAR, dateSkeleton) ) { in initializeIntervalPattern()
1132 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.YEAR] + skeleton; in initializeIntervalPattern()
[all …]

12345678910