Home
last modified time | relevance | path

Searched refs:isGregorianLeap (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/i18n/
Dindiancal.cpp97 static UBool isGregorianLeap(int32_t year) in isGregorianLeap() function
117 if (isGregorianLeap(eyear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
134 return isGregorianLeap(eyear + INDIAN_ERA_START) ? 366 : 365; in handleGetYearLength()
151 (isGregorianLeap(year) ? -1 : -2) in gregorianToJD()
181 (isGregorianLeap(year) ? 1 : 2) in jdToGregorian()
204 if(isGregorianLeap(gyear)) { in IndianToJD()
306 …leapMonth = isGregorianLeap(gregorianYear - 1) ? 31 : 30; // Days in leapMonth this year, previous… in handleComputeFields()
309 leapMonth = isGregorianLeap(gregorianYear) ? 31 : 30; // Days in leapMonth this year in handleComputeFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DIndianCalendar.java344 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
372 …leapMonth = isGregorianLeap(gregorianDay[0] - 1) ? 31 : 30; // Days in leapMonth this year, previo… in handleComputeFields()
375 leapMonth = isGregorianLeap(gregorianDay[0]) ? 31 : 30; // Days in leapMonth this year in handleComputeFields()
475 if(isGregorianLeap(gyear)) { in IndianToJD()
515 + ((month <= 2) ? 0 : (isGregorianLeap(year) ? -1 : -2)) in gregorianToJD()
548 (isGregorianLeap(year) ? 1 : 2) in jdToGregorian()
568 private static boolean isGregorianLeap(int year) in isGregorianLeap() method in IndianCalendar
/external/icu/android_icu4j/src/main/java/android/icu/util/
DIndianCalendar.java318 if(isGregorianLeap(extendedYear + INDIAN_ERA_START) && month == 0) { in handleGetMonthLength()
345 …leapMonth = isGregorianLeap(gregorianDay[0] - 1) ? 31 : 30; // Days in leapMonth this year, previo… in handleComputeFields()
348 leapMonth = isGregorianLeap(gregorianDay[0]) ? 31 : 30; // Days in leapMonth this year in handleComputeFields()
446 if(isGregorianLeap(gyear)) { in IndianToJD()
486 + ((month <= 2) ? 0 : (isGregorianLeap(year) ? -1 : -2)) in gregorianToJD()
519 (isGregorianLeap(year) ? 1 : 2) in jdToGregorian()
539 private static boolean isGregorianLeap(int year) in isGregorianLeap() method in IndianCalendar