/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TimeZone.java | 22 import java.util.TimeZone; 25 * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long) 28 public class Support_TimeZone extends TimeZone { 46 * let's assume this timezone has daylight savings from the 4th month till
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
TimeZone.java | 3 * @(#)TimeZone.java 1.51 00/01/19 32 * <strong>[icu enhancement]</strong> ICU's replacement for {@link java.util.TimeZone}. Methods, fields, and other functionality specific to ICU are labeled '<strong>[icu]</strong>'. 34 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight 37 * <p>Typically, you get a <code>TimeZone</code> using {@link #getDefault()} 38 * which creates a <code>TimeZone</code> based on the time zone where the program 40 * creates a <code>TimeZone</code> object based on Japanese Standard Time. 42 * <p>You can also get a <code>TimeZone</code> using {@link #getTimeZone(String)} 45 * U.S. Pacific Time <code>TimeZone</code> object with: 49 * TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
BuddhistCalendar.java | 71 public BuddhistCalendar(TimeZone zone) { 103 public BuddhistCalendar(TimeZone zone, Locale aLocale) { 115 public BuddhistCalendar(TimeZone zone, ULocale locale) {
|
/external/icu/icu4c/source/i18n/ |
tzgnames.h | 37 class TimeZone; 50 UnicodeString& getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type,
|
windtfmt.h | 78 * no longer owns the TimeZone object and should not delete it after this call. 80 * @param zoneToAdopt the TimeZone to be adopted. 82 virtual void adoptTimeZone(TimeZone* zoneToAdopt); 88 virtual void setTimeZone(const TimeZone& zone); 118 UnicodeString setTimeZoneInfo(TIME_ZONE_INFORMATION *tzi, const TimeZone &zone) const;
|
/external/icu/icu4c/source/test/intltest/ |
tztest.h | 18 * Various tests for TimeZone 28 * Test the offset of the PRT timezone. 51 void findTransition(const TimeZone& tz, 57 void testUsingBinarySearch(const TimeZone& tz,
|
tzbdtest.h | 14 #include "unicode/timezone.h" 42 virtual void findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz); 51 * Given a date, a TimeZone, and expected values for inDaylightTime, 54 virtual void verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expInDaylightTime, UDate expZoneOffset, UDate expDSTOffset); 75 virtual void findBoundariesStepwise(int32_t year, UDate interval, TimeZone* z, int32_t expectedChanges);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
TimeZone.java | 2 * @(#)TimeZone.java 1.51 00/01/19 31 * {@icuenhanced java.util.TimeZone}.{@icu _usage_} 33 * <p><code>TimeZone</code> represents a time zone offset, and also computes daylight 36 * <p>Typically, you get a <code>TimeZone</code> using {@link #getDefault()} 37 * which creates a <code>TimeZone</code> based on the time zone where the program 39 * creates a <code>TimeZone</code> object based on Japanese Standard Time. 41 * <p>You can also get a <code>TimeZone</code> using {@link #getTimeZone(String)} 44 * U.S. Pacific Time <code>TimeZone</code> object with: 48 * TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
BuddhistCalendar.java | 74 public BuddhistCalendar(TimeZone zone) { 109 public BuddhistCalendar(TimeZone zone, Locale aLocale) { 122 public BuddhistCalendar(TimeZone zone, ULocale locale) {
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue141/ |
ConfigurableTimezoneTest.java | 19 import java.util.TimeZone; 36 options.setTimeZone(TimeZone.getTimeZone("GMT+1:00"));
|
/libcore/luni/src/main/java/libcore/net/http/ |
HttpDate.java | 24 import java.util.TimeZone; 39 rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
|
/libcore/support/src/test/java/tests/support/ |
Support_TimeZone.java | 22 import java.util.TimeZone; 25 * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long) 28 public class Support_TimeZone extends TimeZone { 46 * let's assume this timezone has daylight savings from the 4th month till
|
/external/jetty/src/java/org/eclipse/jetty/util/ajax/ |
JSONDateConvertor.java | 26 import java.util.TimeZone; 55 this(DateCache.DEFAULT_FORMAT,TimeZone.getTimeZone("GMT"),fromJSON); 58 public JSONDateConvertor(String format,TimeZone zone,boolean fromJSON) 67 public JSONDateConvertor(String format, TimeZone zone, boolean fromJSON, Locale locale)
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/ |
XMPDateTimeFactory.java | 15 import java.util.TimeZone; 28 /** The UTC TimeZone */ 29 private static final TimeZone UTC = TimeZone.getTimeZone("UTC"); 114 cal.setTimeZone(TimeZone.getDefault()); 148 // has automatically local timezone
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpDate.java | 24 import java.util.TimeZone; 31 private static final TimeZone GMT = TimeZone.getTimeZone("GMT"); 50 // HTTP formats required by RFC2616 but with any timezone. 92 // Set the timezone to use when interpreting formats that don't have a timezone. GMT is
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
BasicDurationFormatterFactory.java | 12 import java.util.TimeZone; 31 private TimeZone timeZone; 40 this.timeZone = TimeZone.getDefault(); 132 * @param timeZone The time zone to use. 135 public DurationFormatterFactory setTimeZone(TimeZone timeZone) { 136 if (!timeZone.equals(this.timeZone)) { [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
BasicDurationFormatterFactory.java | 11 import java.util.TimeZone; 30 private TimeZone timeZone; 39 this.timeZone = TimeZone.getDefault(); 131 * @param timeZone The time zone to use. 134 public DurationFormatterFactory setTimeZone(TimeZone timeZone) { 135 if (!timeZone.equals(this.timeZone)) { [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue49/ |
CalendarTest.java | 21 import java.util.TimeZone; 36 cal.setTimeZone(TimeZone.getTimeZone("GMT-8:00")); 81 private void check(long time, String timeZone, String warning, String etalon) { 86 cal.setTimeZone(TimeZone.getTimeZone(timeZone)); 95 assertFalse("TimeZone must deviate.", bean.getCalendar().equals(parsed.getCalendar())); 105 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()), 117 assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()),
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
ICUTestCase.java | 22 import com.ibm.icu.util.TimeZone; 38 private static final java.util.TimeZone oldJTimeZone = java.util.TimeZone.getDefault(); 39 private static final TimeZone oldITimeZone = TimeZone.getDefault(); 48 java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("PST")); 49 TimeZone.setDefault(TimeZone.getTimeZone("PST")); 55 TimeZone.setDefault(oldITimeZone) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
ZoneGetter.java | 41 import java.util.TimeZone; 46 private static final String XMLTAG_TIMEZONE = "timezone"; 55 public static String getTimeZoneOffsetAndName(TimeZone tz, Date now) { 80 // China that mostly use a single timezone (olson id: "Asia/Shanghai") may not live near 94 final TimeZone[] timeZones = new TimeZone[zoneCount]; 99 TimeZone tz = TimeZone.getTimeZone(olsonId); 116 TimeZone tz = timeZones[i]; 133 TimeZone tz = timeZones[i] [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 16 import java.util.TimeZone; 44 private TimeZone timeZone = TimeZone.getTimeZone("UTC"); 68 // extract the date and timezone from the calendar provided 70 TimeZone zone = calendar.getTimeZone(); 87 this.timeZone = intCalendar.getTimeZone(); 93 * a <code>Date</code> and a <code>TimeZone</code>. 96 * @param timeZone a TimeZone how to interpret the dat [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerUtils.java | 30 import java.util.TimeZone; 45 * list of timezone IDs that need to be overridden. 56 * Given a timezone id (e.g. America/Los_Angeles), returns the corresponding timezone 60 * @param id The timezone id 63 * @return The display name of the timezone. 67 TimeZone timezone = TimeZone.getTimeZone(id); local 68 if (timezone == null) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
SimpleTimeZoneTest.java | 24 import java.util.TimeZone; 172 TimeZone.LONG, 179 TimeZone.SHORT, 181 TimeZone.LONG, 184 TimeZone.LONG)); 188 TimeZone.LONG, 195 TimeZone.SHORT, 197 TimeZone.LONG, 200 TimeZone.LONG)); 262 TimeZone tz = TimeZone.getTimeZone("EST") [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
GregorianCalendarTest.java | 24 import java.util.TimeZone; 29 private static final TimeZone LOS_ANGELES = TimeZone.getTimeZone("America/Los_Angeles"); 31 private static final TimeZone LONDON = TimeZone.getTimeZone("Europe/London"); 158 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles"); 159 checkDstLosAngeles2014(timeZone); 171 TimeZone timeZone = TimeZone.getTimeZone("America/Los_Angeles") [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TimestampTest.java | 22 import java.util.TimeZone; 197 // First set the timezone to GMT 198 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 215 // First set the timezone to GMT 216 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 254 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); 267 TimeZone.setDefault(TimeZone.getTimeZone("GMT")) [all...] |