Searched defs:tz (Results 1 - 5 of 5) sorted by relevance
/libcore/luni/src/main/java/libcore/icu/ |
H A D | TimeZoneNames.java | 161 public static native String getExemplarLocation(String locale, String tz); argument
|
H A D | DateUtilsBridge.java | 51 * Callers must not modify the {@code tz} after calling this method. 53 public static android.icu.util.TimeZone icuTimeZone(java.util.TimeZone tz) { argument 54 JavaTimeZone javaTimeZone = new JavaTimeZone(tz, null);
|
H A D | RelativeDateTimeFormatter.java | 91 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, argument 96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext); 99 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, argument 104 if (tz == null) { 105 throw new NullPointerException("tz == null"); 108 android.icu.util.TimeZone icuTimeZone = DateUtilsBridge.icuTimeZone(tz); 260 public static String getRelativeDateTimeString(Locale locale, java.util.TimeZone tz, long time, argument 266 if (tz == null) { 267 throw new NullPointerException("tz == null"); 270 android.icu.util.TimeZone icuTimeZone = DateUtilsBridge.icuTimeZone(tz); [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | SimpleDateFormatTest.java | 162 TimeZone tz = AMERICA_LOS_ANGELES; 163 assertEquals("-0800", formatDate(Locale.ENGLISH, "Z", tz)); 164 assertEquals("-0800", formatDate(Locale.ENGLISH, "ZZ", tz)); 165 assertEquals("-0800", formatDate(Locale.ENGLISH, "ZZZ", tz)); 166 assertEquals("GMT-08:00", formatDate(Locale.ENGLISH, "ZZZZ", tz)); 167 assertEquals("-08:00", formatDate(Locale.ENGLISH, "ZZZZZ", tz)); 204 private String formatDate(Locale l, String fmt, TimeZone tz) { argument 206 dateFormat.setTimeZone(tz); 227 private static Calendar parseDate(Locale l, String fmt, String value, TimeZone tz) { argument 229 sdf.setTimeZone(tz); [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | TimeZoneTest.java | 69 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles"); 70 TimeZone.setDefault(tz); 74 assertEquals(-28800000, tz.getOffset(date.getTime())); 75 assertFalse(tz.inDaylightTime(date)); 80 assertEquals(-28800000, tz.getOffset(date.getTime())); 81 assertFalse(tz.inDaylightTime(date)); 94 TimeZone tz = TimeZone.getTimeZone("Africa/Bissau"); 97 assertNonDaylightOffset(-3600, parseIsoTime("1911-01-01T00:00:00.0+0000"), tz); 99 assertNonDaylightOffset(-3600, parseIsoTime("1912-01-01T12:00:00.0-0100"), tz); 102 assertNonDaylightOffset(0, parseIsoTime("1980-01-01T00:00:00.0+0000"), tz); 105 assertNonDaylightOffset(int expectedOffsetSeconds, long epochSeconds, TimeZone tz) argument 329 formatGmtString(TimeZone tz, boolean daylight) argument [all...] |
Completed in 895 milliseconds