Searched refs:MONTH (Results 1 - 25 of 182) sorted by relevance

12345678

/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
H A DTimeUnitConstants.java22 public static final TimeUnit MONTH = TimeUnit.MONTH; field in interface:TimeUnitConstants
H A DTimeUnit.java40 public static final TimeUnit MONTH = new TimeUnit("month", 1); field in class:TimeUnit
72 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
H A DTimeUnitConstants.java20 public static final TimeUnit MONTH = TimeUnit.MONTH; field in interface:TimeUnitConstants
H A DTimeUnit.java38 public static final TimeUnit MONTH = new TimeUnit("month", 1); field in class:TimeUnit
70 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
H A DDangiTest.java85 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based
112 cal.set(Calendar.MONTH, cmonth - 1);
142 cal.get(Calendar.MONTH) +
195 // If we set MONTH only, that should be used
198 Calendar.MONTH, 3,
203 Calendar.MONTH, 1, // Should ignore
211 Calendar.MONTH, 3,
233 int month = cal.get(Calendar.MONTH);
243 cal.set(Calendar.MONTH, expMonth);
278 cal.set(MONTH, m
[all...]
H A DHebrewTest.java46 * The only real nastiness with roll is the MONTH field, since a year can
55 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years
56 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 },
57 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 },
58 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 },
59 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan
61 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years
62 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 },
63 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 },
64 { 5757, SHEVAT, 2, MONTH,
[all...]
H A DChineseTest.java105 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based
133 cal.set(Calendar.MONTH, cmonth-1);
164 cal.get(Calendar.MONTH) +
320 // If we set MONTH only, that should be used
323 Calendar.MONTH, 3,
328 Calendar.MONTH, 1, // Should ignore
336 // not even with a GregorianCalendar! MONTH alone isn't enough
339 //! // If we set MONTH last, that should take precedence
343 //! Calendar.MONTH, 3,
348 Calendar.MONTH,
[all...]
H A DChineseTestCase.java25 * @param month the MONTH (1-based) field of tested calendar on
41 set(Calendar.MONTH, month - 1);
53 "/" + (get(Calendar.MONTH)+1) +
H A DCopticTest.java155 int month = cal.get(Calendar.MONTH);
198 cal.get(MONTH) + "/" +
204 cal.get(MONTH) + "/" +
234 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH);
237 copticCal.set(Calendar.MONTH, month);
348 gCal.add(GregorianCalendar.MONTH,2);
357 cCal.add(CopticCalendar.MONTH,2);
366 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months
405 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ),
406 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH,
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
H A DDangiTest.java84 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based
111 cal.set(Calendar.MONTH, cmonth - 1);
141 cal.get(Calendar.MONTH) +
194 // If we set MONTH only, that should be used
197 Calendar.MONTH, 3,
202 Calendar.MONTH, 1, // Should ignore
210 Calendar.MONTH, 3,
232 int month = cal.get(Calendar.MONTH);
242 cal.set(Calendar.MONTH, expMonth);
277 cal.set(MONTH, m
[all...]
H A DHebrewTest.java45 * The only real nastiness with roll is the MONTH field, since a year can
54 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years
55 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 },
56 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 },
57 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 },
58 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan
60 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years
61 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 },
62 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 },
63 { 5757, SHEVAT, 2, MONTH,
[all...]
H A DChineseTest.java104 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based
132 cal.set(Calendar.MONTH, cmonth-1);
163 cal.get(Calendar.MONTH) +
319 // If we set MONTH only, that should be used
322 Calendar.MONTH, 3,
327 Calendar.MONTH, 1, // Should ignore
335 // not even with a GregorianCalendar! MONTH alone isn't enough
338 //! // If we set MONTH last, that should take precedence
342 //! Calendar.MONTH, 3,
347 Calendar.MONTH,
[all...]
H A DChineseTestCase.java24 * @param month the MONTH (1-based) field of tested calendar on
40 set(Calendar.MONTH, month - 1);
52 "/" + (get(Calendar.MONTH)+1) +
H A DCopticTest.java154 int month = cal.get(Calendar.MONTH);
197 cal.get(MONTH) + "/" +
203 cal.get(MONTH) + "/" +
233 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH);
236 copticCal.set(Calendar.MONTH, month);
347 gCal.add(GregorianCalendar.MONTH,2);
356 cCal.add(CopticCalendar.MONTH,2);
365 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months
404 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ),
405 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH,
[all...]
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DHeaderParser.java92 retval.set(Calendar.MONTH, Calendar.JANUARY);
94 retval.set(Calendar.MONTH, Calendar.FEBRUARY);
96 retval.set(Calendar.MONTH, Calendar.MARCH);
98 retval.set(Calendar.MONTH, Calendar.APRIL);
100 retval.set(Calendar.MONTH, Calendar.MAY);
102 retval.set(Calendar.MONTH, Calendar.JUNE);
104 retval.set(Calendar.MONTH, Calendar.JULY);
106 retval.set(Calendar.MONTH, Calendar.AUGUST);
108 retval.set(Calendar.MONTH, Calendar.SEPTEMBER);
110 retval.set(Calendar.MONTH, Calenda
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DTimeUnit.java38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR };
60 return MONTH;
H A DHebrewCalendar.java165 { 0, 0, 12, 12 }, // MONTH
337 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
346 this.set(MONTH, month);
368 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
385 this.set(MONTH, month);
405 * need to be changed. For example, when adding one to the {@link #MONTH MONTH} field
416 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONT
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DTimeUnit.java40 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR };
62 return MONTH;
H A DHebrewCalendar.java178 { 0, 0, 12, 12 }, // MONTH
356 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
366 this.set(MONTH, month);
389 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field.
407 this.set(MONTH, month);
427 * need to be changed. For example, when adding one to the {@link #MONTH MONTH} field
438 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONT
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/
H A D1-1.c13 #define MONTH 8 macro
43 time_ptr.tm_mon = MONTH;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
H A DPeriodBuilderFactoryTest.java44 pbf.setAvailableUnitRange(MINUTE, MONTH);
49 assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal());
55 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) {
64 pbf.setAvailableUnitRange(MONTH, MINUTE);
74 pbf.setAvailableUnitRange(MONTH, MONTH);
80 pbf.setUnitIsAvailable(MONTH, false);
H A DPeriodTest.java27 assertFalse(null, p.isSet(TimeUnit.MONTH));
73 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH)
76 assertTrue(null, p.isSet(TimeUnit.MONTH));
77 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f);
78 p = p.and(2, TimeUnit.MONTH);
79 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f);
104 p = p.and(-1, TimeUnit.MONTH);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
H A DPeriodBuilderFactoryTest.java43 pbf.setAvailableUnitRange(MINUTE, MONTH);
48 assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal());
54 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) {
63 pbf.setAvailableUnitRange(MONTH, MINUTE);
73 pbf.setAvailableUnitRange(MONTH, MONTH);
79 pbf.setUnitIsAvailable(MONTH, false);
H A DPeriodTest.java26 assertFalse(null, p.isSet(TimeUnit.MONTH));
72 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH)
75 assertTrue(null, p.isSet(TimeUnit.MONTH));
76 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f);
77 p = p.and(2, TimeUnit.MONTH);
78 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f);
103 p = p.and(-1, TimeUnit.MONTH);
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_TimeZone.java56 int month = cal.get(Calendar.MONTH);

Completed in 598 milliseconds

12345678