Home
last modified time | relevance | path

Searched refs:CalendarUtils (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DJulianCalendar.java106 CalendarUtils.sprintf0d(sb, getMonth(), 2).append('-'); in toString()
107 CalendarUtils.sprintf0d(sb, getDayOfMonth(), 2); in toString()
166 days += CalendarUtils.floorDivide(y - 1, 4); in getFixedDate()
171 days += CalendarUtils.floorDivide((367 * (long) month) - 362, 12); in getFixedDate()
174 days -= CalendarUtils.isJulianLeapYear(jyear) ? 1 : 2; in getFixedDate()
179 cache.setCache(jyear, days, CalendarUtils.isJulianLeapYear(jyear) ? 366 : 365); in getFixedDate()
192 year = (int) CalendarUtils.floorDivide(fd, 1461); in getCalendarDateFromFixedDate()
195 boolean isLeap = CalendarUtils.isJulianLeapYear(year); in getCalendarDateFromFixedDate()
203 month = CalendarUtils.floorDivide(month, 367); in getCalendarDateFromFixedDate()
220 int year = (int) CalendarUtils.floorDivide(4 * (fixedDate - JULIAN_EPOCH) + 1464, 1461); in getYearFromFixedDate()
[all …]
DBaseCalendar.java395 + CalendarUtils.floorDivide(prevyear, 4) in getFixedDate()
396 - CalendarUtils.floorDivide(prevyear, 100) in getFixedDate()
397 + CalendarUtils.floorDivide(prevyear, 400) in getFixedDate()
398 + CalendarUtils.floorDivide((367 * month - 362), 12); in getFixedDate()
451 month = CalendarUtils.floorDivide(month, 367); in getCalendarDateFromFixedDate()
481 return (int)CalendarUtils.mod(fixedDate, 7) + SUNDAY; in getDayOfWeekFromFixedDate()
509 n400 = (int)CalendarUtils.floorDivide(d0, 146097L); in getGregorianYearFromFixedDate()
510 d1 = (int)CalendarUtils.mod(d0, 146097L); in getGregorianYearFromFixedDate()
511 n100 = CalendarUtils.floorDivide(d1, 36524); in getGregorianYearFromFixedDate()
512 d2 = CalendarUtils.mod(d1, 36524); in getGregorianYearFromFixedDate()
[all …]
DCalendarDate.java453 CalendarUtils.sprintf0d(sb, year, 4).append('-'); in toString()
454 CalendarUtils.sprintf0d(sb, month, 2).append('-'); in toString()
455 CalendarUtils.sprintf0d(sb, dayOfMonth, 2).append('T'); in toString()
456 CalendarUtils.sprintf0d(sb, hours, 2).append(':'); in toString()
457 CalendarUtils.sprintf0d(sb, minutes, 2).append(':'); in toString()
458 CalendarUtils.sprintf0d(sb, seconds, 2).append('.'); in toString()
459 CalendarUtils.sprintf0d(sb, millis, 3); in toString()
474 CalendarUtils.sprintf0d(sb, offset / 60, 2); in toString()
475 CalendarUtils.sprintf0d(sb, offset % 60, 2); in toString()
DLocalGregorianCalendar.java113 CalendarUtils.sprintf0d(sb, getMonth(), 2).append('.'); in toString()
114 CalendarUtils.sprintf0d(sb, getDayOfMonth(), 2); in toString()
378 return CalendarUtils.isGregorianLeapYear(gregorianYear); in isLeapYear()
DAbstractCalendar.java331 return fixedDate - CalendarUtils.mod(fd, 7); in getDayOfWeekDateOnOrBefore()
389 days = CalendarUtils.floorDivide(fraction, DAY_IN_MILLIS); in normalizeTime()
DCalendarUtils.java31 public class CalendarUtils { class
/libcore/ojluni/src/main/java/java/util/
DDate.java39 import sun.util.calendar.CalendarUtils;
250 y += CalendarUtils.floorDivide(month, 12); in Date()
251 month = CalendarUtils.mod(month, 12); in Date()
325 y += CalendarUtils.floorDivide(month, 12); in UTC()
326 month = CalendarUtils.mod(month, 12); in UTC()
732 y = CalendarUtils.floorDivide(month, 12); in setMonth()
733 month = CalendarUtils.mod(month, 12); in setMonth()
1059 CalendarUtils.sprintf0d(sb, date.getDayOfMonth(), 2).append(' '); // dd in toString()
1061 CalendarUtils.sprintf0d(sb, date.getHours(), 2).append(':'); // HH in toString()
1062 CalendarUtils.sprintf0d(sb, date.getMinutes(), 2).append(':'); // mm in toString()
[all …]
DGregorianCalendar.java51 import sun.util.calendar.CalendarUtils;
777 gregorianCutoverDate = CalendarUtils.floorDivide(cutoverTime, ONE_DAY) in setGregorianChange()
2526 if (CalendarUtils.isGregorianLeapYear(normalizedYear - 1)) { in computeFields()
2530 if (CalendarUtils.isJulianLeapYear(normalizedYear - 1)) { in computeFields()
2638 return CalendarUtils.floorDivide(normalizedDayOfPeriod, 7) + 1; in getWeekNumber()
3027 year += CalendarUtils.floorDivide(month, 12, rem); in getFixedDate()
DSimpleTimeZone.java45 import sun.util.calendar.CalendarUtils;
628 y = (int) CalendarUtils.mod((long) y, 28); in getOffset()
DJapaneseImperialCalendar.java34 import sun.util.calendar.CalendarUtils;
1838 return CalendarUtils.floorDivide(normalizedDayOfPeriod, 7) + 1; in getWeekNumber()
2008 year += CalendarUtils.floorDivide(month, 12, rem); in getFixedDate()
2199 return CalendarUtils.isGregorianLeapYear(gregorianYear) ? in monthLength()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarUtils.java29 public class CalendarUtils { class
31 public CalendarUtils() { in CalendarUtils() method in CalendarUtils
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java66 import sun.util.calendar.CalendarUtils;
1522 CalendarUtils.sprintf0d(buffer, value / 60, 2); in subFormat()
1530 CalendarUtils.sprintf0d(buffer, value % 60, 2); in subFormat()
/libcore/
Dopenjdk_java_files.bp1766 "ojluni/src/main/java/sun/util/calendar/CalendarUtils.java",