/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
TimeUnitConstants.java | 21 /** Represents a month. */ 22 public static final TimeUnit MONTH = TimeUnit.MONTH;
|
TimeUnit.java | 39 /** Represents a month. */ 40 public static final TimeUnit MONTH = new TimeUnit("month", 1); 72 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
TimeUnitConstants.java | 19 /** Represents a month. */ 20 public static final TimeUnit MONTH = TimeUnit.MONTH;
|
TimeUnit.java | 37 /** Represents a month. */ 38 public static final TimeUnit MONTH = new TimeUnit("month", 1); 70 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
DangiTest.java | 85 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based 112 cal.set(Calendar.MONTH, cmonth - 1); 129 * month zero. This was a problem with some of the astronomical 142 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 | 46 * The only real nastiness with roll is the MONTH field, since a year can 53 // year month day field amount year month day 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 } [all...] |
ChineseTest.java | 105 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based 133 cal.set(Calendar.MONTH, cmonth-1); 151 * month zero. This was a problem with some of the astronomical 164 cal.get(Calendar.MONTH) + 206 // ** Millis->fields gives 0-based month -1 210 // Julian Day Era Year Month Leap DOM WkDay 278 // Wed May 23 2001 = Month 4(leap), Day 1, Year 18, Cycle 78 312 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 313 // Note: exp.month is ONE-BASED 320 // If we set MONTH only, that should be use 370 int month = cal.get(Calendar.MONTH); local [all...] |
ChineseTestCase.java | 25 * @param month the MONTH (1-based) field of tested calendar on 27 * @param isLeapMonth if true, treat month as a leap month 34 int era, int year, int month, 41 set(Calendar.MONTH, month - 1); 53 "/" + (get(Calendar.MONTH)+1) +
|
CopticTest.java | 103 // Julian Day Era Year Month Day WkDay Hour Min Sec 150 for (int m = 0; m < 12; ++m) { // don't understand rules for 13th month 151 for (int d = 1; d < 25; d += 3) { // play it safe on days per month 155 int month = cal.get(Calendar.MONTH); local 158 m == month && 165 " m: " + month + 198 cal.get(MONTH) + "/" + 204 cal.get(MONTH) + "/" + 222 * 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 141 cal.get(Calendar.MONTH) + 186 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 187 // Note: exp.month is ONE-BASED 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); local [all...] |
HebrewTest.java | 45 * The only real nastiness with roll is the MONTH field, since a year can 52 // year month day field amount year month day 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 } [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 163 cal.get(Calendar.MONTH) + 205 // ** Millis->fields gives 0-based month -1 209 // Julian Day Era Year Month Leap DOM WkDay 277 // Wed May 23 2001 = Month 4(leap), Day 1, Year 18, Cycle 78 311 // (field, value)+, END, exp.month, exp.isLeapMonth, exp.DOM 312 // Note: exp.month is ONE-BASED 319 // If we set MONTH only, that should be use 369 int month = cal.get(Calendar.MONTH); local [all...] |
ChineseTestCase.java | 24 * @param month the MONTH (1-based) field of tested calendar on 26 * @param isLeapMonth if true, treat month as a leap month 33 int era, int year, int month, 40 set(Calendar.MONTH, month - 1); 52 "/" + (get(Calendar.MONTH)+1) +
|
/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 | 38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 60 return MONTH;
|
HebrewCalendar.java | 27 * the lunar month (approximately 29.53 days) an extra "leap month" is 34 * The leap month is known as "Adar 1" and is inserted between the 35 * months of Shevat and Adar in leap years. Since the leap month does 37 * month numbers are particularly complex. Users of this class should 86 * Constant for Tishri, the 1st month of the Hebrew year. 91 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 101 * Constant for Tevet, the 4th month of the Hebrew year. 106 * Constant for Shevat, the 5th month of the Hebrew year. 435 int month = get(MONTH); local 515 int month = get(MONTH); local 786 int month = 0; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
TimeUnit.java | 40 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; 62 return MONTH;
|
HebrewCalendar.java | 26 * the lunar month (approximately 29.53 days) an extra "leap month" is 33 * The leap month is known as "Adar 1" and is inserted between the 34 * months of Shevat and Adar in leap years. Since the leap month does 36 * month numbers are particularly complex. Users of this class should 86 * Constant for Tishri, the 1st month of the Hebrew year. 92 * Constant for Heshvan, the 2nd month of the Hebrew year. 98 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 110 * Constant for Shevat, the 5th month of the Hebrew year. 458 int month = get(MONTH); local 539 int month = get(MONTH); local 812 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/ |
1-1.c | 13 #define MONTH 8 43 time_ptr.tm_mon = MONTH;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
PeriodBuilderFactoryTest.java | 44 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);
|
PeriodTest.java | 27 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/ |
PeriodBuilderFactoryTest.java | 43 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);
|
PeriodTest.java | 26 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);
|
/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...] |