Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/libcore/icu/
DRelativeDateTimeFormatterTest.java31 import static libcore.icu.RelativeDateTimeFormatter.HOUR_IN_MILLIS;
69 final long TWO_HOURS_IN_MS = 2 * HOUR_IN_MILLIS; in test_getRelativeTimeSpanStringCTS()
151 test_getRelativeTimeSpanString_helper(0 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "0 hours ago", in test_getRelativeTimeSpanString()
153 test_getRelativeTimeSpanString_helper(1 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "1 hour ago", in test_getRelativeTimeSpanString()
155 test_getRelativeTimeSpanString_helper(2 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "2 hours ago", in test_getRelativeTimeSpanString()
157 test_getRelativeTimeSpanString_helper(5 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "5 hours ago", in test_getRelativeTimeSpanString()
159 test_getRelativeTimeSpanString_helper(20 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "20 hours ago", 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()
186 test_getRelativeTimeSpanString_helper(30 * HOUR_IN_MILLIS, MINUTE_IN_MILLIS, "Yesterday", in test_getRelativeTimeSpanString()
[all …]
/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java54 static final int HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in AbstractCalendar
55 static final int DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
249 int hours = time / HOUR_IN_MILLIS; in setTimeOfDay()
250 time %= HOUR_IN_MILLIS; in setTimeOfDay()
/libcore/luni/src/main/java/libcore/icu/
DRelativeDateTimeFormatter.java45 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in RelativeDateTimeFormatter
46 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
149 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) { in getRelativeTimeSpanString()
156 count = (int)(duration / HOUR_IN_MILLIS); in getRelativeTimeSpanString()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DAbstractCalendar.java129 static final int HOUR_IN_MILLIS = 3600000; // 0x36ee80 field in AbstractCalendar
/libcore/luni/src/test/java/libcore/java/util/
DGregorianCalendarTest.java37 private static final int HOUR_IN_MILLIS = 3600000; field in GregorianCalendarTest
494 return HOUR_IN_MILLIS * count; in hours()