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

/libcore/luni/src/main/java/libcore/icu/
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.java69 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...]
/libcore/luni/src/test/java/libcore/java/text/
H A DSimpleDateFormatTest.java177 TimeZone tz = AMERICA_LOS_ANGELES;
178 assertEquals("-0800", formatDate(Locale.ENGLISH, "Z", tz));
179 assertEquals("-0800", formatDate(Locale.ENGLISH, "ZZ", tz));
180 assertEquals("-0800", formatDate(Locale.ENGLISH, "ZZZ", tz));
181 assertEquals("GMT-08:00", formatDate(Locale.ENGLISH, "ZZZZ", tz));
182 assertEquals("-08:00", formatDate(Locale.ENGLISH, "ZZZZZ", tz));
219 private String formatDate(Locale l, String fmt, TimeZone tz) { argument
221 dateFormat.setTimeZone(tz);
242 private static Calendar parseDate(Locale l, String fmt, String value, TimeZone tz) { argument
244 sdf.setTimeZone(tz);
[all...]

Completed in 94 milliseconds