Home
last modified time | relevance | path

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

/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.java4962 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
4966 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
4967 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
4970 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
5842 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
5853 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/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.java5128 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
5132 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
5133 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5136 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
6024 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0)); in computeGregorianMonthStart()
6035 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2]; in computeGregorianMonthStart()
/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/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/icu4c/source/i18n/
Dgregoimp.cpp115 UBool isLeap = isLeapYear(year); in dayToFields() local
123 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
125 correction = isLeap ? 1 : 2; in dayToFields()
128 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.java230 boolean isLeap = ((year % 4) == 3); in Test6379()
239 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCopticTest.java231 boolean isLeap = ((year % 4) == 3); in Test6379()
240 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.java1632 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
1633 if (isLeap && value == 6 && count >= 3 ) { in subFormat()
1636 if (!isLeap && value >= 6 && count < 3 ) { in subFormat()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleDateFormat.java1622 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
1623 if (isLeap && value == 6 && count >= 3 ) { in subFormat()
1626 if (!isLeap && value >= 6 && count < 3 ) { in subFormat()