Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java780 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields()
784 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
786 correction = isLeap ? 1 : 2; in handleComputeFields()
789 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
861 boolean isLeap = eyear%4 == 0; in handleComputeMonthStart()
870 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
881 julianDay += MONTH_COUNT[month][isLeap?3:2]; in handleComputeMonthStart()
DCalendar.java5060 boolean isLeap = ((year&0x3) == 0) && // equiv. to (year%4 == 0) in computeGregorianFields()
5064 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in computeGregorianFields()
5065 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5068 GREGORIAN_MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in computeGregorianFields()
5956 boolean isLeap = (year%4 == 0) && ((year%100 != 0) || (year%400 == 0));
5967 julianDay += GREGORIAN_MONTH_COUNT[month][isLeap?3:2];
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java137 boolean isLeap = isLeapYear(year); in dayToFields()
139 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
141 correction = isLeap ? 1 : 2; in dayToFields()
144 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
/external/icu/icu4c/source/i18n/
Dgregocal.cpp401 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) in handleComputeFields() local
405 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in handleComputeFields()
407 correction = isLeap ? 1 : 2; in handleComputeFields()
410 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
541 UBool isLeap = eyear%4 == 0; in handleComputeMonthStart() local
554 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); in handleComputeMonthStart()
570 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; in handleComputeMonthStart()
715 int32_t year, UBool& isLeap) in computeJulianDayOfYear() argument
717 isLeap = year%4 == 0; in computeJulianDayOfYear()
722 isLeap = isLeap && ((year%100 != 0) || (year%400 == 0)); in computeJulianDayOfYear()
Dgregoimp.cpp117 UBool isLeap = isLeapYear(year); in dayToFields() local
125 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 in dayToFields()
127 correction = isLeap ? 1 : 2; in dayToFields()
130 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
Dhebrwcal.cpp580 UBool isLeap = isLeapYear(year); in handleComputeFields() local
584 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
601 … 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.java224 boolean isLeap = ((year % 4) == 3); in Test6379()
233 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5); in Test6379()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h661 UBool& isLeap);
/external/icu/icu4c/source/tools/tzcode/
Dtz2icu.cpp65 bool isLeap(int32_t y) { in isLeap() function
70 return isLeap(y) ? SECS_PER_LEAP_YEAR : SECS_PER_YEAR; in secsPerYear()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java1594 boolean isLeap = HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR)); in subFormat()
1595 if (isLeap && value == 6 && count >= 3 ) { in subFormat()
1598 if (!isLeap && value >= 6 && count < 3 ) { in subFormat()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...