Home
last modified time | relevance | path

Searched refs:TimeZone (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java39 import com.ibm.icu.util.TimeZone;
40 import com.ibm.icu.util.TimeZone.SystemTimeZoneType;
136 boolean isJDKTimeZone = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); in TestShortZoneIDs()
196 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
220 ZoneDescriptor(TimeZone zone) { in ZoneDescriptor()
278 "GMT-YOUR.AD.HERE", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
283 "GMT+15:99", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
284 "GMT+", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
285 "GMT-", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
286 "GMT+0:", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
[all …]
DTimeZoneRegressionTest.java36 import com.ibm.icu.util.TimeZone;
44 String id = TimeZone.getDefault().getID(); in Test4052967()
62 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
63 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
108 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
150 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
164 TimeZone frankenZone = (TimeZone) istream.readObject(); in Test4096952()
188 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
205 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
210 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime_zone_test.cc25 TEST(TimeZone, ValueSemantics) { in TEST() argument
26 absl::TimeZone tz; in TEST()
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
33 TEST(TimeZone, Equality) { in TEST() argument
34 absl::TimeZone a, b; in TEST()
38 absl::TimeZone implicit_utc; in TEST()
39 absl::TimeZone explicit_utc = absl::UTCTimeZone(); in TEST()
43 absl::TimeZone la = absl::time_internal::LoadTimeZone("America/Los_Angeles"); in TEST()
44 absl::TimeZone nyc = absl::time_internal::LoadTimeZone("America/New_York"); in TEST()
48 TEST(TimeZone, CCTZConversion) { in TEST() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneTest.java41 import ohos.global.icu.util.TimeZone;
42 import ohos.global.icu.util.TimeZone.SystemTimeZoneType;
140 boolean isJDKTimeZone = (TimeZone.getDefaultTimeZoneType() == TimeZone.TIMEZONE_JDK); in TestShortZoneIDs()
200 … ZoneDescriptor currentZone = new ZoneDescriptor(TimeZone.getTimeZone(referenceZone.getID())); in TestShortZoneIDs()
224 ZoneDescriptor(TimeZone zone) { in ZoneDescriptor()
282 "GMT-YOUR.AD.HERE", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
287 "GMT+15:99", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
288 "GMT+", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
289 "GMT-", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
290 "GMT+0:", "0", TimeZone.UNKNOWN_ZONE_ID, in TestCustomParse()
[all …]
DTimeZoneRegressionTest.java37 import ohos.global.icu.util.TimeZone;
47 String id = TimeZone.getDefault().getID(); in Test4052967()
65 TimeZone z1 = TimeZone.getTimeZone("PST"); in Test4073209()
66 TimeZone z2 = TimeZone.getTimeZone("PST"); in Test4073209()
111 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933()
153 TimeZone zone = TimeZone.getTimeZone(ZONES[i]); in Test4096952()
167 TimeZone frankenZone = (TimeZone) istream.readObject(); in Test4096952()
191 TimeZone PST = TimeZone.getTimeZone("PST"); in Test4109314()
208 testCal.setTimeZone((TimeZone) testData[i]); in Test4109314()
213 if (!checkCalendar314(testCal, (TimeZone) testData[i])) in Test4109314()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtztest.cpp100 TimeZone* zoneclone = zone->clone(); in TestGenericAPI()
116 TimeZone* saveDefault = TimeZone::createDefault(); in TestGenericAPI()
119 TimeZone::adoptDefault(zone); in TestGenericAPI()
120 TimeZone* defaultzone = TimeZone::createDefault(); in TestGenericAPI()
124 TimeZone::adoptDefault(saveDefault); in TestGenericAPI()
144 TimeZone* hostZone = TimeZone::detectHostTimeZone(); in TestGenericAPI()
155 const char* tzver = TimeZone::getTZDataVersion(status); in TestGenericAPI()
247 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition()
277 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch()
323 TimeZone* tz = TimeZone::createTimeZone("PRT"); in TestPRTOffset()
[all …]
Dtzbdtest.cpp110 TimeZone *zone = TimeZone::createDefault(); in findDaylightBoundaryUsingTimeZone()
118 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone()
191 TimeZoneBoundaryTest::verifyDST(UDate d, TimeZone* time_zone, UBool expUseDaylightTime, UBool expIn… in verifyDST()
280 TimeZone* pst = TimeZone::createTimeZone("PST"); in TestBoundaries()
293 TimeZone* utc = TimeZone::createTimeZone("UTC"); in TestBoundaries()
300 TimeZone* save = TimeZone::createDefault(); in TestBoundaries()
301 TimeZone::setDefault(*pst); in TestBoundaries()
318 TimeZone::setDefault(*save); in TestBoundaries()
327 TimeZone *z = TimeZone::createTimeZone("PST"); in TestBoundaries()
339 TimeZone *tz; in TestBoundaries()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/serializable/
DCalendarHandler.java29 import ohos.global.icu.util.TimeZone;
45 TimeZone tz_a = cal_a.getTimeZone(); in hasSameBehavior()
46 TimeZone tz_b = cal_b.getTimeZone(); in hasSameBehavior()
74 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
91 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
108 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
125 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
142 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
159 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
176 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCalendarHandler.java28 import com.ibm.icu.util.TimeZone;
44 TimeZone tz_a = cal_a.getTimeZone(); in hasSameBehavior()
45 TimeZone tz_b = cal_b.getTimeZone(); in hasSameBehavior()
73 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
90 TimeZone tst = TimeZone.getTimeZone("Asia/Bangkok"); in getTestObjects()
107 TimeZone cst = TimeZone.getTimeZone("Asia/Shanghai"); in getTestObjects()
124 TimeZone ast = TimeZone.getTimeZone("Europe/Athens"); in getTestObjects()
141 TimeZone kst = TimeZone.getTimeZone("Asia/Seoul"); in getTestObjects()
158 TimeZone ast = TimeZone.getTimeZone("Africa/Addis_Ababa"); in getTestObjects()
175 TimeZone pst = TimeZone.getTimeZone("America/Los_Angeles"); in getTestObjects()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dtimezone.h133 class U_I18N_API TimeZone : public UObject {
138 virtual ~TimeZone();
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(void);
179 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
303 static TimeZone* U_EXPORT2 detectHostTimeZone();
318 static TimeZone* U_EXPORT2 createDefault(void);
330 static TimeZone* U_EXPORT2 forLocaleOrDefault(const Locale& locale);
342 static void U_EXPORT2 adoptDefault(TimeZone* zone);
353 static void U_EXPORT2 setDefault(const TimeZone& zone);
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Dtimezone.h133 class U_I18N_API TimeZone : public UObject {
138 virtual ~TimeZone();
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(void);
179 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
352 static TimeZone* U_EXPORT2 detectHostTimeZone();
367 static TimeZone* U_EXPORT2 createDefault(void);
379 static TimeZone* U_EXPORT2 forLocaleOrDefault(const Locale& locale);
391 static void U_EXPORT2 adoptDefault(TimeZone* zone);
402 static void U_EXPORT2 setDefault(const TimeZone& zone);
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Dtimezone.h133 class U_I18N_API TimeZone : public UObject {
138 virtual ~TimeZone();
152 static const TimeZone& U_EXPORT2 getUnknown();
166 static const TimeZone* U_EXPORT2 getGMT(void);
179 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
352 static TimeZone* U_EXPORT2 detectHostTimeZone();
367 static TimeZone* U_EXPORT2 createDefault(void);
379 static TimeZone* U_EXPORT2 forLocaleOrDefault(const Locale& locale);
391 static void U_EXPORT2 adoptDefault(TimeZone* zone);
402 static void U_EXPORT2 setDefault(const TimeZone& zone);
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dtimezone.cpp115 static icu::TimeZone* DEFAULT_ZONE = nullptr;
258 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
323 const TimeZone& U_EXPORT2
324 TimeZone::getUnknown() in getUnknown()
330 const TimeZone* U_EXPORT2
331 TimeZone::getGMT() in getGMT()
341 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
343 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
350 TimeZone::TimeZone(const UnicodeString &id) in TimeZone() function in TimeZone
357 TimeZone::~TimeZone() in ~TimeZone()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DTimeZone.java117 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> { class
131 public TimeZone() { in TimeZone() method in TimeZone
141 protected TimeZone(String ID) { in TimeZone() method in TimeZone
252 public static final TimeZone UNKNOWN_ZONE = new ConstantZone(0, UNKNOWN_ZONE_ID).freeze();
259 public static final TimeZone GMT_ZONE = new ConstantZone(0, GMT_ZONE_ID).freeze();
702 public static TimeZone getTimeZone(String ID) { in getTimeZone()
721 public static TimeZone getFrozenTimeZone(String ID) { in getFrozenTimeZone()
737 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone()
749 private static TimeZone getTimeZone(String id, int type, boolean frozen) { in getTimeZone()
750 TimeZone result; in getTimeZone()
[all …]
DCECalendar.java59 this(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar()
68 protected CECalendar(TimeZone zone) { in CECalendar()
79 this(TimeZone.forLocaleOrDefault(aLocale), aLocale); in CECalendar()
89 this(TimeZone.forULocaleOrDefault(locale), locale); in CECalendar()
100 protected CECalendar(TimeZone zone, Locale aLocale) { in CECalendar()
113 protected CECalendar(TimeZone zone, ULocale locale) { in CECalendar()
130 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar()
141 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar()
160 super(TimeZone.getDefault(), ULocale.getDefault(Category.FORMAT)); in CECalendar()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DTimeZone.java117 abstract public class TimeZone implements Serializable, Cloneable, Freezable<TimeZone> { class
130 public TimeZone() { in TimeZone() method in TimeZone
141 protected TimeZone(String ID) { in TimeZone() method in TimeZone
238 public static final TimeZone UNKNOWN_ZONE = new ConstantZone(0, UNKNOWN_ZONE_ID).freeze();
243 public static final TimeZone GMT_ZONE = new ConstantZone(0, GMT_ZONE_ID).freeze();
662 public static TimeZone getTimeZone(String ID) { in getTimeZone()
680 public static TimeZone getFrozenTimeZone(String ID) { in getFrozenTimeZone()
695 public static TimeZone getTimeZone(String ID, int type) { in getTimeZone()
707 private static TimeZone getTimeZone(String id, int type, boolean frozen) { in getTimeZone()
708 TimeZone result; in getTimeZone()
[all …]
/third_party/icu/icu4c/source/i18n/
Dtimezone.cpp115 static icu::TimeZone* DEFAULT_ZONE = NULL;
258 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
323 const TimeZone& U_EXPORT2
324 TimeZone::getUnknown() in getUnknown()
330 const TimeZone* U_EXPORT2
331 TimeZone::getGMT(void) in getGMT()
341 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
343 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
350 TimeZone::TimeZone(const UnicodeString &id) in TimeZone() function in TimeZone
357 TimeZone::~TimeZone() in ~TimeZone()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dtimezone.cpp115 static icu::TimeZone* DEFAULT_ZONE = NULL;
258 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResou… in loadRule()
323 const TimeZone& U_EXPORT2
324 TimeZone::getUnknown() in getUnknown()
330 const TimeZone* U_EXPORT2
331 TimeZone::getGMT(void) in getGMT()
341 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(TimeZone) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
343 TimeZone::TimeZone() in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION()
350 TimeZone::TimeZone(const UnicodeString &id) in TimeZone() function in TimeZone
357 TimeZone::~TimeZone() in ~TimeZone()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTimeZoneAdapter.java17 import com.ibm.icu.util.TimeZone;
32 public class TimeZoneAdapter extends java.util.TimeZone {
41 private TimeZone zone;
47 public static java.util.TimeZone wrap(com.ibm.icu.util.TimeZone tz) { in wrap()
54 public com.ibm.icu.util.TimeZone unwrap() { in unwrap()
61 public TimeZoneAdapter(TimeZone zone) { in TimeZoneAdapter()
79 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()
130 return new TimeZoneAdapter((TimeZone)zone.clone()); in clone()
150 TimeZone anotherZone = ((TimeZoneAdapter) obj).zone; in equals()
DJavaTimeZone.java18 import com.ibm.icu.util.TimeZone;
30 public class JavaTimeZone extends TimeZone {
36 private java.util.TimeZone javatz;
42 String[] availableIds = java.util.TimeZone.getAvailableIDs();
48 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null);
60 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone()
69 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone()
85 java.util.TimeZone jtz = null; in createTimeZone()
88 jtz = java.util.TimeZone.getTimeZone(id); in createTimeZone()
94 String canonicalID = TimeZone.getCanonicalID(id, isSystemID); in createTimeZone()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DTimeZoneAdapter.java18 import ohos.global.icu.util.TimeZone;
33 public class TimeZoneAdapter extends java.util.TimeZone {
42 private TimeZone zone;
48 public static java.util.TimeZone wrap(ohos.global.icu.util.TimeZone tz) { in wrap()
55 public ohos.global.icu.util.TimeZone unwrap() { in unwrap()
62 public TimeZoneAdapter(TimeZone zone) { in TimeZoneAdapter()
80 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()
131 return new TimeZoneAdapter((TimeZone)zone.clone()); in clone()
151 TimeZone anotherZone = ((TimeZoneAdapter) obj).zone; in equals()
DJavaTimeZone.java19 import ohos.global.icu.util.TimeZone;
32 public class JavaTimeZone extends TimeZone {
38 private java.util.TimeZone javatz;
44 String[] availableIds = java.util.TimeZone.getAvailableIDs();
50 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null);
62 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone()
71 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone()
87 java.util.TimeZone jtz = null; in createTimeZone()
90 jtz = java.util.TimeZone.getTimeZone(id); in createTimeZone()
96 String canonicalID = TimeZone.getCanonicalID(id, isSystemID); in createTimeZone()
[all …]
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/util/timezone/
DBasicTimeZoneExample.java17 import com.ibm.icu.util.TimeZone;
38 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in nextTransitionExample()
65 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in previousTransitionExample()
92 …BasicTimeZone btz = (BasicTimeZone)TimeZone.getTimeZone("America/Los_Angeles", TimeZone.TIMEZONE_I… in timeZoneRulesExample()
107 …BasicTimeZone tzNewYork = (BasicTimeZone)TimeZone.getTimeZone("America/New_York", TimeZone.TIMEZON… in equivalentTransitionsExample()
108 …BasicTimeZone tzDetroit = (BasicTimeZone)TimeZone.getTimeZone("America/Detroit", TimeZone.TIMEZONE… in equivalentTransitionsExample()
110 GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/GMT")); in equivalentTransitionsExample()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DTimeZoneJDK.java15 import java.util.TimeZone;
25 public class TimeZoneJDK extends com.ibm.icu.util.TimeZone {
29 private TimeZone fJdkTz;
32 private TimeZoneJDK(TimeZone jdkTz) { in TimeZoneJDK()
33 fJdkTz = (TimeZone)jdkTz.clone(); in TimeZoneJDK()
36 public static com.ibm.icu.util.TimeZone wrap(TimeZone jdkTz) { in wrap()
43 public TimeZone unwrap() { in unwrap()
44 return (TimeZone)fJdkTz.clone(); in unwrap()
154 public boolean hasSameRules(com.ibm.icu.util.TimeZone other) { in hasSameRules()
198 public com.ibm.icu.util.TimeZone freeze() { in freeze()
[all …]
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DTimeZoneICU.java15 import com.ibm.icu.util.TimeZone;
21 public class TimeZoneICU extends java.util.TimeZone {
25 private TimeZone fIcuTz;
27 private TimeZoneICU(TimeZone icuTz) { in TimeZoneICU()
31 public static java.util.TimeZone wrap(TimeZone icuTz) { in wrap()
38 public TimeZone unwrap() { in unwrap()
45 other.fIcuTz = (TimeZone)fIcuTz.clone(); in clone()
84 public boolean hasSameRules(java.util.TimeZone other) { in hasSameRules()

12345678910>>...18