Searched defs:tz (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java161 public static native String getExemplarLocation(String locale, String tz); argument
H A DDateUtilsBridge.java51 * 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 DRelativeDateTimeFormatter.java91 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/util/
H A DTimeZoneTest.java61 TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
62 TimeZone.setDefault(tz);
66 assertEquals(-28800000, tz.getOffset(date.getTime()));
67 assertFalse(tz.inDaylightTime(date));
72 assertEquals(-28800000, tz.getOffset(date.getTime()));
73 assertFalse(tz.inDaylightTime(date));
86 TimeZone tz = TimeZone.getTimeZone("Africa/Bissau");
89 assertNonDaylightOffset(-3600, parseIsoTime("1911-01-01T00:00:00.0+0000"), tz);
91 assertNonDaylightOffset(-3600, parseIsoTime("1912-01-01T12:00:00.0-0100"), tz);
94 assertNonDaylightOffset(0, parseIsoTime("1980-01-01T00:00:00.0+0000"), tz);
97 assertNonDaylightOffset(int expectedOffsetSeconds, long epochSeconds, TimeZone tz) argument
277 formatGmtString(TimeZone tz, boolean daylight) argument
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DSimpleDateFormatTest.java162 TimeZone tz = TimeZone.getTimeZone("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));
205 private String formatDate(Locale l, String fmt, TimeZone tz) { argument
207 dateFormat.setTimeZone(tz);
445 TimeZone tz = TimeZone.getTimeZone("UTC");
447 df.setTimeZone(tz);
[all...]

Completed in 122 milliseconds