Searched refs:daysInMonth (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/main/java/java/util/ |
D | GregorianCalendar.java | 399 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in add() 498 if (date > daysInMonth(leapYear, month)) { in fullFieldsCalc() 499 date -= daysInMonth(leapYear, month); in fullFieldsCalc() 529 if (date > daysInMonth(leapYear, month)) { in fullFieldsCalc() 530 date -= daysInMonth(leapYear, month); in fullFieldsCalc() 732 && (fields[DATE] < 1 || fields[DATE] > daysInMonth( in computeTime() 754 days += daysInMonth(leapYear, month) in computeTime() 756 - (days + daysInMonth(leapYear, month) - 3)) in computeTime() 864 private int daysInMonth() { in daysInMonth() method in GregorianCalendar 865 return daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in daysInMonth() [all …]
|
D | SimpleTimeZone.java | 364 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); in getOffset() local 375 daysInMonth = GregorianCalendar.DaysInMonth[startMonth]; in getOffset() 378 daysInMonth += 1; in getOffset() 380 ruleDay = daysInMonth in getOffset() 383 - (firstDayOfMonth + daysInMonth)) in getOffset() 418 daysInMonth = GregorianCalendar.DaysInMonth[endMonth]; in getOffset() 420 daysInMonth++; in getOffset() 422 ruleDay = daysInMonth in getOffset() 425 - (firstDayOfMonth + daysInMonth)) + endDay in getOffset()
|