HomeSort by relevance Sort by last modified time
    Searched refs:isLeapYear (Results 1 - 25 of 34) sorted by null

1 2

  /libcore/luni/src/main/java/java/util/
Grego.java 60 public static final boolean isLeapYear(int year) {
72 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
98 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom
137 boolean isLeap = isLeapYear(year);
GregorianCalendar.java 400 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]);
507 boolean leapYear = isLeapYear(fields[YEAR]);
538 leapYear = isLeapYear(fields[YEAR]);
575 - (isLeapYear(fields[YEAR] - 1) ? 2 : 1)) >= getMinimalDaysInFirstWeek() ? 53
822 boolean leapYear = isLeapYear(year);
    [all...]
SimpleTimeZone.java 340 if (month != Calendar.FEBRUARY || day != 29 || !isLeapYear(year)) {
369 if (startMonth == Calendar.FEBRUARY && isLeapYear(
412 if (endMonth == Calendar.FEBRUARY && isLeapYear(year)) {
447 if (ruleMonth == Calendar.FEBRUARY && isLeapYear(year)) {
523 private boolean isLeapYear(int year) {
    [all...]
  /external/icu4c/i18n/
hebrwcal.cpp 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
319 UBool leapYear = isLeapYear(year);
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
471 UBool HebrewCalendar::isLeapYear(int32_t year) {
478 return isLeapYear(year) ? 13 : 12;
573 UBool isLeap = isLeapYear(year);
648 if (isLeapYear(eyear)) {
gregoimp.h 142 static inline UBool isLeapYear(int32_t year);
258 inline UBool Grego::isLeapYear(int32_t year) {
265 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
persncal.h 171 static UBool isLeapYear(int32_t year);
chnsecal.cpp 116 isLeapYear = FALSE;
121 isLeapYear = other.isLeapYear;
385 if (isLeapYear) { // (member variable)
408 int32_t n = isLeapYear ? 13 : 12; // Months in this year
603 * <p>As a side effect, this method sets {@link #isLeapYear}.
634 // Note: isLeapYear is a member variable
635 isLeapYear = synodicMonthsBetween(firstMoon, lastMoon) == 12;
638 if (isLeapYear && isLeapMonthBetween(firstMoon, thisMoon)) {
645 UBool isLeapMonth = isLeapYear &
    [all...]
chnsecal.h 134 UBool isLeapYear;
hebrwcal.h 279 static UBool isLeapYear(int32_t year) ;
persncal.cpp 265 UBool PersianCalendar::isLeapYear(int32_t year)
300 return MONTH_COUNT[month][PersianCalendar::isLeapYear(extendedYear)?1:0];
307 return 365 + (PersianCalendar::isLeapYear(extendedYear) ? 1 : 0);
gregoimp.cpp 91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom
117 UBool isLeap = isLeapYear(year);
gregocal.cpp 22 * 05/08/97 aliu Added code review changes. Fixed isLeapYear() to
460 GregorianCalendar::isLeapYear(int32_t year) const
462 // MSVC complains bitterly if we try to use Grego::isLeapYear here
584 return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month];
588 return isLeapYear(eyear) ? 366 : 365;
604 return isLeapYear(year) ? kLeapMonthLength[month] : kMonthLength[month];
612 return isLeapYear(year) ? 366 : 365;
620 return isLeapYear(internalGet(UCAL_YEAR)) ? 366 : 365;
    [all...]
tzrule.cpp 293 if (month == UCAL_FEBRUARY && dom == 29 && !Grego::isLeapYear(year)) {
smpdtfmt.cpp     [all...]
  /external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/
date-format-xparb.js 77 return "(this.isLeapYear() ? 1 : 0) + ";
293 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
310 Date.prototype.isLeapYear = function() {
326 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
  /external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/
date-format-xparb.js 77 return "(this.isLeapYear() ? 1 : 0) + ";
293 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
310 Date.prototype.isLeapYear = function() {
326 Date.daysInMonth[1] = this.isLeapYear() ? 29 : 28;
  /external/webkit/Source/JavaScriptCore/wtf/
DateMath.cpp 143 static inline bool isLeapYear(int year)
156 return 365 + isLeapYear(year);
311 static inline int monthToDayInYear(int month, bool isLeapYear)
313 return firstDayOfMonth[isLeapYear][month];
333 int monthday = monthToDayInYear(month, isLeapYear(year));
468 bool leapYear = isLeapYear(year);
659 if (month == 2 && day > 28 && !isLeapYear(year))
    [all...]
  /external/webkit/Source/WebCore/html/
DateComponents.cpp 56 static bool isLeapYear(int year)
72 return isLeapYear(year) ? 29 : 28;
98 return day == Thursday || (day == Wednesday && isLeapYear(m_year)) ? 53 : 52;
523 m_month = monthFromDayInYear(yearDay, isLeapYear(m_year));
524 m_monthDay = dayInMonthFromDayInYear(yearDay, isLeapYear(m_year));
  /external/icu4c/i18n/unicode/
gregocal.h 340 UBool isLeapYear(int32_t year) const;
    [all...]
  /frameworks/opt/calendar/src/com/android/calendarcommon/
RecurrenceProcessor.java     [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
GregorianCalendarTest.java 501 * @tests java.util.GregorianCalendar#isLeapYear(int)
504 // Test for method boolean java.util.GregorianCalendar.isLeapYear(int)
507 .isLeapYear(1998));
509 .isLeapYear(2000));
  /external/icu4c/test/intltest/
caltest.cpp 636 b = c->isLeapYear(1800);
637 logln(UnicodeString(" isLeapYear(1800) = ") + (b ? "true" : "false"));
643 b = c->isLeapYear(1800);
644 logln(UnicodeString(" isLeapYear(1800) = ") + (b ? "true" : "false"));
    [all...]
calregts.cpp     [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
com.ibm.icu_4.2.1.v20100412.jar 
  /prebuilts/tools/common/jfreechart/
jcommon-1.0.12.jar 

Completed in 512 milliseconds

1 2