/libcore/luni/src/test/java/libcore/java/time/ |
YearTest.java | 33 // More extensive tests for Year.isLeap() (which delegates to this static method) can be 35 assertFalse(Year.isLeap(1900)); 36 assertFalse(Year.isLeap(1999)); 37 assertTrue(Year.isLeap(2000)); 38 assertFalse(Year.isLeap(2001)); 39 assertFalse(Year.isLeap(2002)); 40 assertFalse(Year.isLeap(2003)); 41 assertTrue(Year.isLeap(2004)); 42 assertFalse(Year.isLeap(2005));
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Grego.java | 141 boolean isLeap = isLeapYear(year); 143 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 145 correction = isLeap ? 1 : 2; 148 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM
|
/external/icu/icu4c/source/i18n/ |
gregoimp.cpp | 120 UBool isLeap = isLeapYear(year); 128 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 130 correction = isLeap ? 1 : 2; 133 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM
|
gregocal.cpp | 403 UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0) 407 int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 409 correction = isLeap ? 1 : 2; 412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM 415 // fprintf(stderr, "%d - %d[%d] + 1\n", dayOfYear, isLeap?kLeapNumDays[month]:kNumDays[month], month ); 543 UBool isLeap = eyear%4 == 0; 556 isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0)); 572 julianDay += isLeap?kLeapNumDays[month]:kNumDays[month]; 717 int32_t year, UBool& isLeap) [all...] |
hebrwcal.cpp | 583 UBool isLeap = isLeapYear(year); 587 while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type] ) ) { 604 int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Grego.java | 139 boolean isLeap = isLeapYear(year); 141 int march1 = isLeap ? 60 : 59; // zero-based DOY for March 1 143 correction = isLeap ? 1 : 2; 146 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GregorianCalendar.java | 757 boolean isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0 [all...] |
Calendar.java | [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
GregorianCalendar.java | [all...] |
Calendar.java | [all...] |
/libcore/ojluni/src/main/java/sun/util/calendar/ |
BaseCalendar.java | 423 boolean isLeap; 427 isLeap = isLeapYear(year); 434 isLeap = isLeapYear(year); 436 gdate.setCache (year, jan1, isLeap ? 366 : 365); 441 if (isLeap) { 445 priorDays += isLeap ? 1 : 2; 454 if (isLeap && month >= MARCH) { 464 gdate.setLeapYear(isLeap);
|
JulianCalendar.java | 195 boolean isLeap = CalendarUtils.isJulianLeapYear(year); 197 priorDays += isLeap ? 1 : 2; 212 jdate.setLeapYear(isLeap);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKYear.java | 441 // isLeap() 445 assertEquals(Year.of(1999).isLeap(), false); 446 assertEquals(Year.of(2000).isLeap(), true); 447 assertEquals(Year.of(2001).isLeap(), false); 449 assertEquals(Year.of(2007).isLeap(), false); 450 assertEquals(Year.of(2008).isLeap(), true); 451 assertEquals(Year.of(2009).isLeap(), false); 452 assertEquals(Year.of(2010).isLeap(), false); 453 assertEquals(Year.of(2011).isLeap(), false); 454 assertEquals(Year.of(2012).isLeap(), true) [all...] |
/libcore/ojluni/src/main/java/java/time/ |
Year.java | 309 public static boolean isLeap(long year) { 521 public boolean isLeap() { 522 return Year.isLeap(year); 544 return isLeap() ? 366 : 365; [all...] |
MonthDay.java | 503 return (day == 29 && month == 2 && Year.isLeap(year) == false) == false;
|
/frameworks/base/core/java/android/text/format/ |
TimeFormatter.java | 298 int len = isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; 317 yday += isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; 459 private static boolean isLeap(int year) {
|
/external/icu/icu4c/source/i18n/unicode/ |
gregocal.h | 659 * @param isLeap true if the year is a leap year. 663 UBool& isLeap);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
CopticTest.java | 236 boolean isLeap = ((year % 4) == 3); 245 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
CopticTest.java | 233 boolean isLeap = ((year % 4) == 3); 242 int expected = (month != maxMonth) ? 30 : (isLeap ? 6 : 5);
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
IsoChronology.java | 556 dom = Math.min(dom, Month.FEBRUARY.length(Year.isLeap(y)));
|
/libcore/luni/src/main/java/libcore/util/ |
ZoneInfo.java | 392 boolean isLeap = (year == 0 || (year % 4 == 0 && year % 100 != 0)); 393 int[] mlen = isLeap ? LEAP : NORMAL; [all...] |
/prebuilts/tools/common/m2/repository/joda-time/joda-time/2.8.1/ |
joda-time-2.8.1.jar | |
/prebuilts/tools/common/m2/repository/joda-time/joda-time/2.9.1/ |
joda-time-2.9.1.jar | |
/external/caliper/lib/ |
joda-time-2.1.jar | |
/prebuilts/go/darwin-x86/src/time/ |
time.go | 556 if jan1wday == Fri || (jan1wday == Sat && isLeap(year)) { 982 if isLeap(year) { 1033 if m == February && isLeap(year) { [all...] |