/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
TimeUnitConstants.java | 19 /** Represents a month. */ 20 public static final TimeUnit MONTH = TimeUnit.MONTH;
|
TimeUnit.java | 36 /** Represents a month. */ 37 public static final TimeUnit MONTH = new TimeUnit("month", 1); 69 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
TimeUnitConstants.java | 17 /** Represents a month. */ 18 public static final TimeUnit MONTH = TimeUnit.MONTH;
|
TimeUnit.java | 34 /** Represents a month. */ 35 public static final TimeUnit MONTH = new TimeUnit("month", 1); 67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
DangiTest.java | 88 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based 115 cal.set(Calendar.MONTH, cmonth - 1); 132 * month zero. This was a problem with some of the astronomical 144 cal.get(Calendar.MONTH) + 187 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 188 // Note: exp.month is ONE-BASED 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); local [all...] |
HebrewTest.java | 49 * The only real nastiness with roll is the MONTH field, since a year can 55 // year month day field amount year month day 57 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years 58 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, 59 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, 60 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, 61 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan 63 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years 64 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 } [all...] |
ChineseTest.java | 108 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based 136 cal.set(Calendar.MONTH, cmonth-1); 154 * month zero. This was a problem with some of the astronomical 166 cal.get(Calendar.MONTH) + 206 // ** Millis->fields gives 0-based month -1 210 // Julian Day Era Year Month Leap DOM WkDay 277 // Wed May 23 2001 = Month 4(leap), Day 1, Year 18, Cycle 78 310 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 311 // Note: exp.month is ONE-BASED 318 // If we set MONTH only, that should be use 368 int month = cal.get(Calendar.MONTH); local [all...] |
ChineseTestCase.java | 23 * @param month the MONTH (1-based) field of tested calendar on 25 * @param isLeapMonth if true, treat month as a leap month 32 int era, int year, int month, 39 set(Calendar.MONTH, month - 1); 51 "/" + (get(Calendar.MONTH)+1) +
|
CopticTest.java | 105 // Julian Day Era Year Month Day WkDay Hour Min Sec 151 for (int m = 0; m < 12; ++m) { // don't understand rules for 13th month 152 for (int d = 1; d < 25; d += 3) { // play it safe on days per month 156 int month = cal.get(Calendar.MONTH); local 159 m == month && 166 " m: " + month + 197 cal.get(MONTH) + "/" + 203 cal.get(MONTH) + "/" + 220 * maximum month length [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
DangiTest.java | 84 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based 111 cal.set(Calendar.MONTH, cmonth - 1); 128 * month zero. This was a problem with some of the astronomical 140 cal.get(Calendar.MONTH) + 183 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 184 // Note: exp.month is ONE-BASED 191 // If we set MONTH only, that should be used 194 Calendar.MONTH, 3, 199 Calendar.MONTH, 1, // Should ignore 207 Calendar.MONTH, 3 229 int month = cal.get(Calendar.MONTH); local [all...] |
HebrewTest.java | 45 * The only real nastiness with roll is the MONTH field, since a year can 51 // year month day field amount year month day 53 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years 54 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, 55 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, 56 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, 57 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan 59 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years 60 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 } [all...] |
ChineseTest.java | 104 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based 132 cal.set(Calendar.MONTH, cmonth-1); 150 * month zero. This was a problem with some of the astronomical 162 cal.get(Calendar.MONTH) + 202 // ** Millis->fields gives 0-based month -1 206 // Julian Day Era Year Month Leap DOM WkDay 273 // Wed May 23 2001 = Month 4(leap), Day 1, Year 18, Cycle 78 306 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 307 // Note: exp.month is ONE-BASED 314 // If we set MONTH only, that should be use 364 int month = cal.get(Calendar.MONTH); local [all...] |
ChineseTestCase.java | 22 * @param month the MONTH (1-based) field of tested calendar on 24 * @param isLeapMonth if true, treat month as a leap month 31 int era, int year, int month, 38 set(Calendar.MONTH, month - 1); 50 "/" + (get(Calendar.MONTH)+1) +
|
CopticTest.java | 101 // Julian Day Era Year Month Day WkDay Hour Min Sec 147 for (int m = 0; m < 12; ++m) { // don't understand rules for 13th month 148 for (int d = 1; d < 25; d += 3) { // play it safe on days per month 152 int month = cal.get(Calendar.MONTH); local 155 m == month && 162 " m: " + month + 193 cal.get(MONTH) + "/" + 199 cal.get(MONTH) + "/" + 216 * maximum month length [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
HeaderParser.java | 90 String month = lexer.ttoken().toLowerCase(); local 91 if (month.equals("jan")) { 92 retval.set(Calendar.MONTH, Calendar.JANUARY); 93 } else if (month.equals("feb")) { 94 retval.set(Calendar.MONTH, Calendar.FEBRUARY); 95 } else if (month.equals("mar")) { 96 retval.set(Calendar.MONTH, Calendar.MARCH); 97 } else if (month.equals("apr")) { 98 retval.set(Calendar.MONTH, Calendar.APRIL); 99 } else if (month.equals("may")) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
TimeUnit.java | 36 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 58 return MONTH;
|
HebrewCalendar.java | 25 * the lunar month (approximately 29.53 days) an extra "leap month" is 32 * The leap month is known as "Adar 1" and is inserted between the 33 * months of Shevat and Adar in leap years. Since the leap month does 35 * month numbers are particularly complex. Users of this class should 84 * Constant for Tishri, the 1st month of the Hebrew year. 89 * Constant for Heshvan, the 2nd month of the Hebrew year. 94 * Constant for Kislev, the 3rd month of the Hebrew year. 99 * Constant for Tevet, the 4th month of the Hebrew year. 104 * Constant for Shevat, the 5th month of the Hebrew year. 433 int month = get(MONTH); local 513 int month = get(MONTH); local 784 int month = 0; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
TimeUnit.java | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 60 return MONTH;
|
HebrewCalendar.java | 24 * the lunar month (approximately 29.53 days) an extra "leap month" is 31 * The leap month is known as "Adar 1" and is inserted between the 32 * months of Shevat and Adar in leap years. Since the leap month does 34 * month numbers are particularly complex. Users of this class should 84 * Constant for Tishri, the 1st month of the Hebrew year. 90 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 102 * Constant for Tevet, the 4th month of the Hebrew year. 108 * Constant for Shevat, the 5th month of the Hebrew year. 456 int month = get(MONTH); local 537 int month = get(MONTH); local 810 int month = 0; local [all...] |
/frameworks/base/core/java/android/util/ |
MonthDisplayHelper.java | 22 * Helps answer common questions that come up when displaying a month in a 32 // holds current month, year, helps compute display 43 * @param month The month. 46 public MonthDisplayHelper(int year, int month, int weekStartDay) { 55 mCalendar.set(Calendar.MONTH, month); 66 public MonthDisplayHelper(int year, int month) { 67 this(year, month, Calendar.SUNDAY); 76 return mCalendar.get(Calendar.MONTH); [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
PeriodBuilderFactoryTest.java | 49 pbf.setAvailableUnitRange(MINUTE, MONTH); 54 assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()); 60 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { 69 pbf.setAvailableUnitRange(MONTH, MINUTE); 78 pbf.setAvailableUnitRange(MONTH, MONTH); 84 pbf.setUnitIsAvailable(MONTH, false);
|
PeriodTest.java | 33 assertFalse(null, p.isSet(TimeUnit.MONTH)); 76 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) 79 assertTrue(null, p.isSet(TimeUnit.MONTH)); 80 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); 81 p = p.and(2, TimeUnit.MONTH); 82 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); 106 p = p.and(-1, TimeUnit.MONTH);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
PeriodBuilderFactoryTest.java | 45 pbf.setAvailableUnitRange(MINUTE, MONTH); 50 assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()); 56 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { 65 pbf.setAvailableUnitRange(MONTH, MINUTE); 74 pbf.setAvailableUnitRange(MONTH, MONTH); 80 pbf.setUnitIsAvailable(MONTH, false);
|
PeriodTest.java | 29 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); 102 p = p.and(-1, TimeUnit.MONTH);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CalendarTest.java | 50 cal.set(Calendar.MONTH, Calendar.MARCH); 60 cal.set(Calendar.MONTH, Calendar.OCTOBER); 62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); 64 assertTrue("Incorrect month: " + cal.get(Calendar.MONTH), cal 65 .get(Calendar.MONTH) == Calendar.NOVEMBER); 122 // WEEK_OF_YEAR has priority over MONTH/DATE 127 cal.set(Calendar.MONTH, Calendar.JANUARY); 133 // WEEK_OF_YEAR has priority over MONTH/DATE 137 cal.set(Calendar.MONTH, Calendar.JANUARY) [all...] |