Searched refs:YEAR (Results 1 - 25 of 96) sorted by relevance

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
H A DPeriodTest.java26 Period p = Period.at(0, TimeUnit.YEAR);
28 assertTrue(null, p.isSet(TimeUnit.YEAR));
30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f);
31 p = p.omit(TimeUnit.YEAR);
32 assertFalse(null, p.isSet(TimeUnit.YEAR));
36 Period p = Period.moreThan(1, TimeUnit.YEAR);
49 p = Period.lessThan(1, TimeUnit.YEAR);
53 p = Period.at(1, TimeUnit.YEAR);
57 assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f);
61 Period p = Period.at(1, TimeUnit.YEAR)
[all...]
H A DPeriodBuilderFactoryTest.java40 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
48 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
54 for (TimeUnit unit = YEAR; unit != null; unit = unit.smaller()) {
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
H A DTimeUnitConstants.java15 public static final TimeUnit YEAR = TimeUnit.YEAR; field in interface:TimeUnitConstants
H A DTimeUnit.java32 public static final TimeUnit YEAR = new TimeUnit("year", 0); field in class:TimeUnit
67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DTimeUnit.java38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR };
62 return YEAR;
H A DTaiwanCalendar.java145 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
161 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR
204 year = internalGet(YEAR, 1) + Taiwan_ERA_START;
206 year = 1 - internalGet(YEAR, 1) + Taiwan_ERA_START;
221 internalSet(YEAR, y);
224 internalSet(YEAR, 1- y);
230 * should really handle YEAR, YEAR_WO
[all...]
H A DCopticCalendar.java197 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
222 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
252 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
258 eyear = 1 - internalGet(YEAR, 1); // Convert to extended year
260 eyear = internalGet(YEAR, 1); // Default to year 1
291 internalSet(YEAR, year);
H A DBuddhistCalendar.java142 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
158 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
198 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
201 year = internalGet(YEAR, GREGORIAN_EPOCH - BUDDHIST_ERA_START)
222 internalSet(YEAR, y);
227 * should really handle YEAR, YEAR_WOY, and EXTENDED_YEAR here too to
H A DGregorianCalendar.java114 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
139 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR));
259 { 1, 1, 5828963, 5838270 }, // YEAR
399 * @param year the value used to set the YEAR time field in the calendar.
409 set(YEAR, year);
417 * @param year the value used to set the YEAR time field in the calendar.
432 set(YEAR, year);
442 * @param year the value used to set the YEAR tim
[all...]
H A DJapaneseCalendar.java146 * @param year The value used to set the calendar's {@link #YEAR YEAR} field,
164 * @param year The value used to set the calendar's {@link #YEAR YEAR} field,
183 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field,
218 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR &&
223 year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year)
320 internalSet(YEAR, year - ERAS[low*3] + 1);
613 case YEAR
[all...]
H A DHebrewCalendar.java175 { -5000000, -5000000, 5000000, 5000000 }, // YEAR
352 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
363 this.set(YEAR, year);
385 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
404 this.set(YEAR, year);
457 int year = get(YEAR);
489 set(YEAR, year);
538 int year = get(YEAR);
[all...]
H A DEthiopicCalendar.java221 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
246 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
302 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
305 eyear = internalGet(YEAR, 1 + AMETE_MIHRET_DELTA)
311 eyear = internalGet(YEAR, 1); // Default to year 1
313 eyear = internalGet(YEAR, 1) - AMETE_MIHRET_DELTA;
349 internalSet(YEAR, year);
H A DPersianCalendar.java211 * @param year the value used to set the {@link #YEAR YEAR} time field in the calendar.
224 this.set(Calendar.YEAR, year);
233 * @param year the value used to set the {@link #YEAR YEAR} time field in the calendar.
253 this.set(Calendar.YEAR, year);
269 { -5000000, -5000000, 5000000, 5000000}, // YEAR
391 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
394 year = internalGet(YEAR, 1); // Default to year 1
404 * <li>YEAR
[all...]
H A DSimpleDateRule.java125 c.setTime(computeInYear(c.get(Calendar.YEAR), c));
152 int year = c.get(Calendar.YEAR);
182 c.set(Calendar.YEAR, year);
H A DEasterHoliday.java216 calendar.get(Calendar.YEAR); // JDK 1.1.2 bug workaround
217 calendar.add(Calendar.YEAR, 1);
250 int year = cal.get(Calendar.YEAR);
275 cal.set(Calendar.YEAR, year);
H A DIndianCalendar.java245 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
256 this.set(Calendar.YEAR, year);
266 * @param year The value used to set the calendar's {@link #YEAR YEAR} time field.
285 this.set(Calendar.YEAR, year);
313 if (newerField(EXTENDED_YEAR, YEAR) == EXTENDED_YEAR) {
317 year = internalGet(YEAR, 1);
394 internalSet(YEAR, IndianYear);
404 { -5000000, -5000000, 5000000, 5000000}, // YEAR
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
H A DChineseTestCase.java20 * @param year the YEAR field of tested calendar on the given
37 set(Calendar.YEAR, year);
49 get(Calendar.YEAR) + "of" + get(Calendar.ERA) +
H A DJapaneseTest.java111 logln("min year: " + cal.getMinimum(Calendar.YEAR));
112 cal.set(Calendar.YEAR, cal.getActualMaximum(Calendar.YEAR));
114 cal.add(Calendar.YEAR, 1);
158 int gotYear = cal.get(Calendar.YEAR);
191 gotYear = cal2.get(Calendar.YEAR);
254 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH",
284 Calendar.YEAR, 45 };
299 c.set(Calendar.YEAR, 1);
310 c.set(Calendar.YEAR,
[all...]
H A DHebrewTest.java71 { 5757, TISHRI, 1, YEAR, 1, 5758, TISHRI, 1 },
76 { 5758, KISLEV, 30, YEAR, -1, 5757, KISLEV, 29 },
238 calendar.set(Calendar.YEAR, 5717);
264 cal.set(Calendar.YEAR, year);
268 int yact = cal.get(Calendar.YEAR);
318 cal.set(Calendar.YEAR, y);
321 yact = cal.get(Calendar.YEAR); mact = cal.get(Calendar.MONTH) + 1;
328 cal.set(Calendar.YEAR, y);
335 (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.YEAR));
340 cal.set(Calendar.YEAR,
[all...]
H A DIBMCalendarTest.java185 int y = cal.get(Calendar.YEAR);
188 cal.get(Calendar.YEAR) + "/" +
192 cal.get(Calendar.YEAR) + "/" +
503 int y = cal.fieldDifference(date2004, Calendar.YEAR);
511 y = cal.fieldDifference(date2000, Calendar.YEAR);
633 cal.set(Calendar.YEAR, 2002);
726 cal.set(Calendar.YEAR, test.womyear);
878 bcal.add(Calendar.YEAR, 1);
891 ccal.add(Calendar.YEAR, 1);
893 ccal.roll(Calendar.YEAR,
[all...]
H A DCompatibilityTest.java31 "ERA", "YEAR", "MONTH", "WEEK_OF_YEAR", "WEEK_OF_MONTH",
98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY,
200 year2 = cal.get(Calendar.YEAR);
221 year2 = cal.get(Calendar.YEAR);
255 int year2 = cal.get(Calendar.YEAR);
373 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE:
455 if (gc.get(Calendar.YEAR) != year ||
521 c.set(Calendar.YEAR, 1997);
528 c.set(Calendar.YEAR, 1997);
535 c.set(Calendar.YEAR, 199
[all...]
H A DTestCase.java62 get(Calendar.YEAR) + "/" + (get(Calendar.MONTH)+1) + "/" +
81 * @param year The YEAR field of tested calendar on the given julian day
97 set(Calendar.YEAR, year);
115 * @param year The YEAR field of tested calendar on the given gregorian date
134 set(Calendar.YEAR, year);
H A DHolidayTest.java211 int year = fCalendar.get(Calendar.YEAR);
216 fCalendar.set(Calendar.YEAR, year);
275 assertEquals("Easter's year: ", 2014, c.get(Calendar.YEAR));
287 gcal.set(Calendar.YEAR, 2000);
301 gcal.set(Calendar.YEAR, 1957);
303 gcal.set(Calendar.YEAR, 1958);
305 gcal.set(Calendar.YEAR, 2058);
307 gcal.set(Calendar.YEAR, 2059);
/external/libmtp/
H A Dhotplug.sh.in160 YEAR=`echo ${DATE} | awk 'BEGIN { FS="/"} {print $1; }'`
163 if [ "${YEAR}" -gt "2002" ]; then
166 if [ "${YEAR}" -eq "2002" ]; then
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DXMPDateTimeImpl.java80 this.year = intCalendar.get(Calendar.YEAR);
102 this.year = calendar.get(Calendar.YEAR);
319 calendar.set(Calendar.YEAR, year);

Completed in 392 milliseconds

1234