Home
last modified time | relevance | path

Searched refs:newMoon2 (Results 1 – 4 of 4) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java778 private boolean isLeapMonthBetween(int newMoon1, int newMoon2) { in isLeapMonthBetween() argument
783 if (synodicMonthsBetween(newMoon1, newMoon2) >= 50) { in isLeapMonthBetween()
785 ", " + newMoon2 + in isLeapMonthBetween()
789 return (newMoon2 >= newMoon1) && in isLeapMonthBetween()
790 (isLeapMonthBetween(newMoon1, newMoonNear(newMoon2 - SYNODIC_GAP, false)) || in isLeapMonthBetween()
791 hasNoMajorSolarTerm(newMoon2)); in isLeapMonthBetween()
927 int newMoon2 = newMoonNear(newMoon1 + SYNODIC_GAP, true); in newYear() local
931 (hasNoMajorSolarTerm(newMoon1) || hasNoMajorSolarTerm(newMoon2))) { in newYear()
932 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, true); in newYear()
934 cacheValue = newMoon2; in newYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java796 private boolean isLeapMonthBetween(int newMoon1, int newMoon2) { in isLeapMonthBetween() argument
801 if (synodicMonthsBetween(newMoon1, newMoon2) >= 50) { in isLeapMonthBetween()
803 ", " + newMoon2 + in isLeapMonthBetween()
807 return (newMoon2 >= newMoon1) && in isLeapMonthBetween()
808 (isLeapMonthBetween(newMoon1, newMoonNear(newMoon2 - SYNODIC_GAP, false)) || in isLeapMonthBetween()
809 hasNoMajorSolarTerm(newMoon2)); in isLeapMonthBetween()
946 int newMoon2 = newMoonNear(newMoon1 + SYNODIC_GAP, true); in newYear() local
950 (hasNoMajorSolarTerm(newMoon1) || hasNoMajorSolarTerm(newMoon2))) { in newYear()
951 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, true); in newYear()
953 cacheValue = newMoon2; in newYear()
/external/icu/icu4c/source/i18n/
Dchnsecal.cpp640 UBool ChineseCalendar::isLeapMonthBetween(int32_t newMoon1, int32_t newMoon2) const { in isLeapMonthBetween()
645 if (synodicMonthsBetween(newMoon1, newMoon2) >= 50) { in isLeapMonthBetween()
647 "isLeapMonthBetween(%d, %d): Invalid parameters", newMoon1, newMoon2 in isLeapMonthBetween()
652 return (newMoon2 >= newMoon1) && in isLeapMonthBetween()
653 (isLeapMonthBetween(newMoon1, newMoonNear(newMoon2 - SYNODIC_GAP, FALSE)) || in isLeapMonthBetween()
654 hasNoMajorSolarTerm(newMoon2)); in isLeapMonthBetween()
768 int32_t newMoon2 = newMoonNear(newMoon1 + SYNODIC_GAP, TRUE); in newYear() local
772 (hasNoMajorSolarTerm(newMoon1) || hasNoMajorSolarTerm(newMoon2))) { in newYear()
773 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, TRUE); in newYear()
775 cacheValue = newMoon2; in newYear()
Dchnsecal.h193 virtual UBool isLeapMonthBetween(int32_t newMoon1, int32_t newMoon2) const;