Home
last modified time | relevance | path

Searched refs:DAY_IN_MILLIS (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/icu/
DRelativeDateTimeFormatterTest.java30 import static libcore.icu.RelativeDateTimeFormatter.DAY_IN_MILLIS;
82 getRelativeTimeSpanString(en_US, tz, DAY_IN_MILLIS, 0, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
84 getRelativeTimeSpanString(en_US, tz, 2 * DAY_IN_MILLIS, 0, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
86 getRelativeTimeSpanString(en_US, tz, 0, DAY_IN_MILLIS, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
88 getRelativeTimeSpanString(en_US, tz, 0, 2 * DAY_IN_MILLIS, DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
93 DAY_IN_MILLIS, 0)); in test_getRelativeTimeSpanStringCTS()
123 test_getRelativeTimeSpanString_helper(5 * DAY_IN_MILLIS, 0, "5 days ago", "In 5 days"); in test_getRelativeTimeSpanString()
162 test_getRelativeTimeSpanString_helper(0 * DAY_IN_MILLIS, DAY_IN_MILLIS, "Today", "Today"); in test_getRelativeTimeSpanString()
163 test_getRelativeTimeSpanString_helper(20 * HOUR_IN_MILLIS, DAY_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString()
165 test_getRelativeTimeSpanString_helper(24 * HOUR_IN_MILLIS, DAY_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString()
[all …]
/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java55 static final int DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; field in AbstractCalendar
144 days = zoneOffset / DAY_IN_MILLIS; in getCalendarDate()
145 ms = zoneOffset % DAY_IN_MILLIS; in getCalendarDate()
151 days += millis / DAY_IN_MILLIS; in getCalendarDate()
152 ms += (int) (millis % DAY_IN_MILLIS); in getCalendarDate()
153 if (ms >= DAY_IN_MILLIS) { in getCalendarDate()
155 ms -= DAY_IN_MILLIS; in getCalendarDate()
161 ms += DAY_IN_MILLIS; in getCalendarDate()
181 long ms = (gd - EPOCH_OFFSET) * DAY_IN_MILLIS + getTimeOfDay(date); in getTime()
385 if (fraction >= DAY_IN_MILLIS) { in normalizeTime()
[all …]
DLocalGregorianCalendar.java393 adjustYear(ldate, (fixedDate - EPOCH_OFFSET) * DAY_IN_MILLIS, 0); in getCalendarDateFromFixedDate()
/libcore/luni/src/main/java/libcore/icu/
DRelativeDateTimeFormatter.java46 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; field in RelativeDateTimeFormatter
47 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7;
152 } else if (duration < DAY_IN_MILLIS && minResolution < DAY_IN_MILLIS) { in getRelativeTimeSpanString()
300 if (days > 0 && minResolution < DAY_IN_MILLIS) { in getRelativeDateTimeString()
301 minResolution = DAY_IN_MILLIS; in getRelativeDateTimeString()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DAbstractCalendar.java125 static final int DAY_IN_MILLIS = 86400000; // 0x5265c00 field in AbstractCalendar