Home
last modified time | relevance | path

Searched refs:isLeapYear (Results 1 – 25 of 54) sorted by relevance

123

/external/icu/android_icu4j/src/main/java/android/icu/util/
DHebrewCalendar.java440 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
454 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
516 boolean leapYear = isLeapYear(year); in roll()
598 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
604 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
667 public static boolean isLeapYear(int year) { in isLeapYear() method in HebrewCalendar
674 return isLeapYear(year) ? 13 : 12; in monthsInYear()
735 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
782 int monthStart[][] = isLeapYear(year) ? LEAP_MONTH_START : MONTH_START; in handleComputeFields()
837 if (isLeapYear(eyear)) { in handleComputeMonthStart()
DChineseCalendar.java138 private transient boolean isLeapYear; field in ChineseCalendar
576 if (isLeapYear) { // (member variable) in roll()
598 int n = isLeapYear ? 13 : 12; // Months in this year in roll()
855 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
858 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
865 boolean isLeapMonth = isLeapYear && in computeChineseFields()
DPersianCalendar.java310 private final static boolean isLeapYear(int year) in isLeapYear() method in PersianCalendar
341 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
352 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DGregorianCalendar.java508 public boolean isLeapYear(int year) { in isLeapYear() method in GregorianCalendar
707 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
713 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
DAnnualTimeZoneRule.java128 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java463 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
477 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
540 boolean leapYear = isLeapYear(year); in roll()
622 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
628 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
690 public static boolean isLeapYear(int year) { in isLeapYear() method in HebrewCalendar
697 return isLeapYear(year) ? 13 : 12; in monthsInYear()
760 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
808 int monthStart[][] = isLeapYear(year) ? LEAP_MONTH_START : MONTH_START; in handleComputeFields()
865 if (isLeapYear(eyear)) { in handleComputeMonthStart()
DPersianCalendar.java308 private final static boolean isLeapYear(int year) in isLeapYear() method in PersianCalendar
339 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
350 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
DChineseCalendar.java138 private transient boolean isLeapYear; field in ChineseCalendar
594 if (isLeapYear) { // (member variable) in roll()
616 int n = isLeapYear ? 13 : 12; // Months in this year in roll()
874 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
877 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
884 boolean isLeapMonth = isLeapYear && in computeChineseFields()
DGregorianCalendar.java525 public boolean isLeapYear(int year) { in isLeapYear() method in GregorianCalendar
730 return MONTH_COUNT[month][isLeapYear(extendedYear)?1:0]; in handleGetMonthLength()
737 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
DAnnualTimeZoneRule.java138 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear()
/external/icu/icu4c/source/i18n/
Dhebrwcal.cpp231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add()
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add()
319 UBool leapYear = isLeapYear(year); in roll()
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
471 UBool HebrewCalendar::isLeapYear(int32_t year) { in isLeapYear() function in HebrewCalendar
478 return isLeapYear(year) ? 13 : 12; in monthsInYear()
533 …if (field == UCAL_MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(UCAL_MONTH) == ADAR… in validateField()
580 UBool isLeap = isLeapYear(year); in handleComputeFields()
655 if (isLeapYear(eyear)) { in handleComputeMonthStart()
Dchnsecal.cpp125 isLeapYear(FALSE), in ChineseCalendar()
135 isLeapYear(FALSE), in ChineseCalendar()
143 isLeapYear = other.isLeapYear; in ChineseCalendar()
420 if (isLeapYear) { // (member variable) in roll()
443 int32_t n = isLeapYear ? 13 : 12; // Months in this year in roll()
694 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12; in computeChineseFields()
697 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) { in computeChineseFields()
704 UBool isLeapMonth = isLeapYear && in computeChineseFields()
Dgregoimp.h142 static inline UBool isLeapYear(int32_t year);
258 inline UBool Grego::isLeapYear(int32_t year) { in isLeapYear() function
265 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
Dpersncal.cpp108 UBool PersianCalendar::isLeapYear(int32_t year) in isLeapYear() function in PersianCalendar
151 return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month]; in handleGetMonthLength()
158 return isLeapYear(extendedYear) ? 366 : 365; in handleGetYearLength()
Dgregocal.cpp460 GregorianCalendar::isLeapYear(int32_t year) const in isLeapYear() function in GregorianCalendar
584 return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month]; in handleGetMonthLength()
588 return isLeapYear(eyear) ? 366 : 365; in handleGetYearLength()
604 return isLeapYear(year) ? kLeapMonthLength[month] : kMonthLength[month]; in monthLength()
612 return isLeapYear(year) ? 366 : 365; in yearLength()
620 return isLeapYear(internalGet(UCAL_YEAR)) ? 366 : 365; in yearLength()
Dpersncal.h171 static UBool isLeapYear(int32_t year);
Dgregoimp.cpp91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
117 UBool isLeap = isLeapYear(year); in dayToFields()
Dhebrwcal.h279 static UBool isLeapYear(int32_t year) ;
Dchnsecal.h153 UBool isLeapYear;
Dsmpdtfmt.cpp1497 if (hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value == 6 && count >= 3 ) in subFormat()
1499 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6 && count < 3 ) in subFormat()
2839 if (!hc->isLeapYear(value) && saveHebrewMonth >= 6) { in subParse()
2889 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6) { in subParse()
3336 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6) { in subParse()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java60 public static final boolean isLeapYear(int year) { in isLeapYear() method in Grego
72 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
98 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
137 boolean isLeap = isLeapYear(year); in dayToFields()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java62 public static final boolean isLeapYear(int year) { in isLeapYear() method in Grego
74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
100 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
139 boolean isLeap = isLeapYear(year); in dayToFields()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h340 UBool isLeapYear(int32_t year) const;
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHebrewTest.java469 boolean leapYear = HebrewCalendar.isLeapYear (year); in Test1624()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHebrewTest.java473 boolean leapYear = HebrewCalendar.isLeapYear (year); in Test1624()

123