/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 1557 …private void compareTransitionsAscending(TimeZone tz1, TimeZone tz2, long start, long end, boolean… in compareTransitionsAscending() argument 1558 BasicTimeZone z1 = (BasicTimeZone)tz1; in compareTransitionsAscending() 1560 String zid1 = tz1.getID(); in compareTransitionsAscending() 1607 …private void compareTransitionsDescending(TimeZone tz1, TimeZone tz2, long start, long end, boolea… in compareTransitionsDescending() argument 1608 BasicTimeZone z1 = (BasicTimeZone)tz1; in compareTransitionsDescending() 1610 String zid1 = tz1.getID(); in compareTransitionsDescending() 1718 private static boolean hasEquivalentTransitions(BasicTimeZone tz1, BasicTimeZone tz2, in hasEquivalentTransitions() argument 1721 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions() 1729 tz1.getOffset(start, false, offsets1); in hasEquivalentTransitions() 1747 TimeZoneTransition tr1 = tz1.getNextTransition(time, false); in hasEquivalentTransitions() [all …]
|
D | TimeZoneRegressionTest.java | 448 SimpleTimeZone tz1 = new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0); in Test4154537() local 455 if (tz1.useDaylightTime() || tz2.useDaylightTime() || in Test4154537() 463 if (!tz1.hasSameRules(tz2)) { in Test4154537() 465 errln("zone 1 = " + tz1); in Test4154537()
|
D | TimeZoneTest.java | 1435 SimpleTimeZone tz1 = new SimpleTimeZone( in TestFebruary() local 1483 TimeZone timezones[] = { tz1, tz2 }; in TestFebruary() 1860 TimeZone tz1 = TimeZone.getTimeZone(id); in TestHashCode() local 1864 if (tz1.hashCode() != tz2.hashCode()) { in TestHashCode() 1868 if (!tz1.toString().equals(tz2.toString())) { in TestHashCode()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRuleTest.java | 1555 …private void compareTransitionsAscending(TimeZone tz1, TimeZone tz2, long start, long end, boolean… in compareTransitionsAscending() argument 1556 BasicTimeZone z1 = (BasicTimeZone)tz1; in compareTransitionsAscending() 1558 String zid1 = tz1.getID(); in compareTransitionsAscending() 1605 …private void compareTransitionsDescending(TimeZone tz1, TimeZone tz2, long start, long end, boolea… in compareTransitionsDescending() argument 1606 BasicTimeZone z1 = (BasicTimeZone)tz1; in compareTransitionsDescending() 1608 String zid1 = tz1.getID(); in compareTransitionsDescending() 1716 private static boolean hasEquivalentTransitions(BasicTimeZone tz1, BasicTimeZone tz2, in hasEquivalentTransitions() argument 1719 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions() 1727 tz1.getOffset(start, false, offsets1); in hasEquivalentTransitions() 1745 TimeZoneTransition tr1 = tz1.getNextTransition(time, false); in hasEquivalentTransitions() [all …]
|
D | TimeZoneRegressionTest.java | 445 SimpleTimeZone tz1 = new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0); in Test4154537() local 452 if (tz1.useDaylightTime() || tz2.useDaylightTime() || in Test4154537() 460 if (!tz1.hasSameRules(tz2)) { in Test4154537() 462 errln("zone 1 = " + tz1); in Test4154537()
|
D | TimeZoneTest.java | 1407 SimpleTimeZone tz1 = new SimpleTimeZone( in TestFebruary() local 1455 TimeZone timezones[] = { tz1, tz2 }; in TestFebruary() 1872 TimeZone tz1 = TimeZone.getTimeZone(id); in TestHashCode() local 1876 if (tz1.hashCode() != tz2.hashCode()) { in TestHashCode() 1880 if (!tz1.toString().equals(tz2.toString())) { in TestHashCode()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | tztest.cpp | 1028 TimeZone *tz1 = TimeZone::createTimeZone(zone1); in TestShortZoneIDs() local 1031 if (!tz1) { in TestShortZoneIDs() 1038 if (tz1 && tz2) { in TestShortZoneIDs() 1040 tz2->setID(tz1->getID(itsID)); in TestShortZoneIDs() 1042 if (*tz1 != *tz2) { in TestShortZoneIDs() 1051 delete tz1; in TestShortZoneIDs() 1810 TimeZone* tz1 = TimeZone::createTimeZone(*id1); in TestCountries() local 1817 if(tz1->hasSameRules(*tz2)){ in TestCountries() 1822 delete tz1; in TestCountries() 1913 SimpleTimeZone tz1(-3 * U_MILLIS_PER_HOUR, // raw offset: 3h before (west of) GMT in TestFebruary() local [all …]
|
D | tzrulets.cpp | 52 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, 2522 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, in hasEquivalentTransitions() argument 2529 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions() 2534 tz1.getOffset(start, false, raw1, dst1, status); in hasEquivalentTransitions() 2557 UBool avail1 = tz1.getNextTransition(time, false, tr1); in hasEquivalentTransitions() 2568 tz1.getNextTransition(tr1.getTime(), false, tr1); in hasEquivalentTransitions()
|
D | tzregts.cpp | 566 …LocalPointer<SimpleTimeZone> tz1(new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0, status), statu… in Test4154537() local 579 if (tz1->useDaylightTime() || tz2->useDaylightTime() || in Test4154537() 587 if (!tz1->hasSameRules(*tz2)) { in Test4154537()
|
D | incaltst.cpp | 188 int32_t tz1 = cal.get(UCAL_ZONE_OFFSET,status); in quasiGregorianTest() local 190 if(tz1 != tz2) { in quasiGregorianTest() 191 errln((UnicodeString)"cal's tz " + tz1 + " != grego's tz " + tz2); in quasiGregorianTest()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 699 TimeZone tz1 = fmt.parse("America/Los_Angeles"); in TestParseCoverage() local 700 if (tz1 == null) { in TestParseCoverage() 702 } else if (!expectedTZ.equals(tz1)) { in TestParseCoverage() 703 errln("Parsed TimeZone: '" + tz1.getID() + "' using parse(String) - expected: " in TestParseCoverage()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 696 TimeZone tz1 = fmt.parse("America/Los_Angeles"); in TestParseCoverage() local 697 if (tz1 == null) { in TestParseCoverage() 699 } else if (!expectedTZ.equals(tz1)) { in TestParseCoverage() 700 errln("Parsed TimeZone: '" + tz1.getID() + "' using parse(String) - expected: " in TestParseCoverage()
|
/third_party/python/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 1319 tz1 = self.klass("Australia/Sydney") 1321 self.assertIs(tz0, tz1) 1326 tz1 = self.klass.no_cache("Europe/Lisbon") 1328 self.assertIsNot(tz0, tz1)
|
/third_party/python/Doc/library/ |
D | datetime.rst | 1625 >>> tz1 = KabulTz() 1628 >>> dt1 = datetime(1900, 11, 21, 16, 30, tzinfo=tz1) 1633 >>> dt2 = datetime(2006, 6, 14, 13, 0, tzinfo=tz1)
|
/third_party/python/Lib/test/ |
D | datetimetester.py | 149 tz1 = _TZInfo() 150 dt1 = datetime(2014, 7, 21, 11, 32, 3, 0, tz1)
|