Searched refs:utc (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | DateIntervalFormatTest.java | 191 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10089890() local 196 …assertEquals("Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)… in test10089890() 213 TimeZone utc = TimeZone.getTimeZone("UTC"); in test10318326() local 216 assertEquals("00:00", formatDateRange(l, utc, midnight, midnight, time24)); in test10318326() 217 assertEquals("12:00 AM", formatDateRange(l, utc, midnight, midnight, time12)); in test10318326() 218 assertEquals("16:00", formatDateRange(l, utc, teaTime, teaTime, time24)); in test10318326() 219 assertEquals("4:00 PM", formatDateRange(l, utc, teaTime, teaTime, time12)); in test10318326() 222 assertEquals("00:00", formatDateRange(l, utc, midnight, midnight, abbr24)); in test10318326() 223 assertEquals("12 AM", formatDateRange(l, utc, midnight, midnight, abbr12)); in test10318326() 224 assertEquals("16:00", formatDateRange(l, utc, teaTime, teaTime, abbr24)); in test10318326() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | FormatterTest.java | 182 TimeZone utc = TimeZone.getTimeZone("UTC"); in checkFormat() local 184 Calendar c = new GregorianCalendar(utc); in checkFormat()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Date.java | 1302 private static final BaseCalendar getCalendarSystem(long utc) { in getCalendarSystem() argument 1306 if (utc >= 0 in getCalendarSystem() 1307 || utc >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER in getCalendarSystem() 1308 - TimeZone.getDefaultRef().getOffset(utc)) { in getCalendarSystem()
|