Home
last modified time | relevance | path

Searched refs:isLeap (Results 1 – 15 of 15) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java782 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
786 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
788 correction = isLeap ? 1 : 2; in handleComputeFields()
791 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
863 boolean isLeap = eyear%4 == 0; in handleComputeMonthStart()
872 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
883 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
DCalendar.java5104 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
5108 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
5109 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5112 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
6113 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
6124 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGregorianCalendar.java757 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
761 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
763 correction = isLeap ? 1 : 2; in handleComputeFields()
766 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
835 boolean isLeap = eyear%4 == 0; in handleComputeMonthStart()
844 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
855 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
DCalendar.java4939 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
4943 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
4944 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
4947 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
5928 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
5939 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java141 boolean isLeap = isLeapYear(year); in dayToFields()
143 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
145 correction = isLeap ? 1 : 2; in dayToFields()
148 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java139 boolean isLeap = isLeapYear(year); in dayToFields()
141 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
143 correction = isLeap ? 1 : 2; in dayToFields()
146 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
/external/icu/icu4c/source/i18n/
Dgregoimp.cpp120 UBool isLeap = isLeapYear(year); in dayToFields() local
128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
130 correction = isLeap ? 1 : 2; in dayToFields()
133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dgregocal.cpp403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
409 correction = isLeap ? 1 : 2; in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
543 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
717 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
719 isLeap = year%4 == 0; in computeJulianDayOfYear()
724 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dhebrwcal.cpp583 UBool isLeap = isLeapYear(year); in handleComputeFields() local
587 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
604 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCopticTest.java233 boolean isLeap = ((year % 4) == 3); in Test6379()
242 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCopticTest.java236 boolean isLeap = ((year % 4) == 3); in Test6379()
245 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h663 UBool& isLeap);
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp66 bool isLeap(int32_t y) { in isLeap() function
71 return isLeap(y) ? SECS_PER_LEAP_YEAR : SECS_PER_YEAR; in secsPerYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java1644 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
1645 if (isLeap && value == 6 && count >= 3 ) { in subFormat()
1648 if (!isLeap && value >= 6 && count < 3 ) { in subFormat()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleDateFormat.java1634 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
1635 if (isLeap && value == 6 && count >= 3 ) { in subFormat()
1638 if (!isLeap && value >= 6 && count < 3 ) { in subFormat()