Home
last modified time | relevance | path

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

/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.cpp1475 if (hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value == 6 && count >= 3 ) in subFormat()
1477 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6 && count < 3 ) in subFormat()
2816 if (!hc->isLeapYear(value) && saveHebrewMonth >= 6) { in subParse()
2866 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6) { in subParse()
3311 if (!hc->isLeapYear(hc->get(UCAL_YEAR,status)) && value >= 6) { in subParse()
Dtzrule.cpp293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) { in getStartInYear()
/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/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()
DCalendarRegression.java919 cal.isLeapYear(y)); in Test4125881()
920 if (cal.isLeapYear(y) != ((y+40)%4 == 0)) in Test4125881()
945 !cal.isLeapYear(-80)) // -80 == 81 BC in Test4125892()
1165 boolean is100Leap = calendar.isLeapYear(100); in Test4149677()
DCompatibilityTest.java502 logln(" isLeapYear(1800) = " + (b=c.isLeapYear(1800))); in TestGregorianChange768()
510 logln(" isLeapYear(1800) = " + (b=c.isLeapYear(1800))); in TestGregorianChange768()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp1458 cal->isLeapYear(y)); in test4125881()
1459 if (cal->isLeapYear(y) != ((y+40)%4 == 0)) in test4125881()
1495 !cal->isLeapYear(-80)) // -80 == 81 BC in test4125892()
1721 UBool is100Leap = calendar->isLeapYear(100); in Test4149677()
Dcaltest.cpp760 b = c->isLeapYear(1800); in TestGregorianChange768()
767 b = c->isLeapYear(1800); in TestGregorianChange768()
2272 if (HebrewCalendar::isLeapYear(year) == FALSE && month == HebrewCalendar::ADAR_1) { in Test1624()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java1594 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
2974 if (!HebrewCalendar.isLeapYear(value)) { in subParse()
3006 if (!HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR))) { in subParse()
/external/chromium-trace/trace-viewer/tracing/third_party/css-element-queries/test/
Dmootools-more-yui-compressed.min.js1isLeapYear:function(){return J.isLeapYear(this.get("year"))},clearTime:function(){return this.set(… method