Searched refs:endCalendar (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/main/java/libcore/icu/ |
D | DateIntervalFormat.java | 56 Calendar endCalendar; in formatDateRange() local 58 endCalendar = startCalendar; in formatDateRange() 60 endCalendar = DateUtilsBridge.createIcuCalendar(icuTimeZone, icuLocale, endMs); in formatDateRange() 72 if (isExactlyMidnight(endCalendar)) { in formatDateRange() 75 boolean endsDayAfterStart = DateUtilsBridge.dayDistance(startCalendar, endCalendar) == 1; in formatDateRange() 79 endCalendar.add(Calendar.DAY_OF_MONTH, -1); in formatDateRange() 83 String skeleton = DateUtilsBridge.toSkeleton(startCalendar, endCalendar, flags); in formatDateRange() 87 return formatter.format(startCalendar, endCalendar, new StringBuffer(), in formatDateRange()
|
D | DateUtilsBridge.java | 70 /* package */ static String toSkeleton(Calendar startCalendar, Calendar endCalendar, int flags) { in toSkeleton() argument 102 if (!(onTheHour(startCalendar) && onTheHour(endCalendar))) { in toSkeleton() 107 if (fallOnDifferentDates(startCalendar, endCalendar)) { in toSkeleton() 111 if (fallInSameMonth(startCalendar, endCalendar) && (flags & FORMAT_NO_MONTH_DAY) != 0) { in toSkeleton() 126 } else if (!fallInSameYear(startCalendar, endCalendar) || !isThisYear(startCalendar)) { in toSkeleton()
|