Home
last modified time | relevance | path

Searched refs:tz1 (Results 1 – 18 of 18) sorted by relevance

/third_party/boost/libs/date_time/test/local_time/
Dtestcustom_time_zone.cpp45 time_zone_ptr tz1(new custom_time_zone(pst, hours(-8), of, rule1)); in main() local
51 tz1->dst_zone_abbrev() == std::string("PDT")); in main()
53 tz1->std_zone_abbrev() == std::string("PST")); in main()
55 tz1->std_zone_name() == std::string("Pacific Standard Time")); in main()
57 tz1->dst_zone_name() == std::string("Pacific Daylight Time")); in main()
59 check("dst offset", tz1->dst_offset() == hours(1)); in main()
60 check("base offset", tz1->base_utc_offset() == hours(-8)); in main()
61 check("has dst", tz1->has_dst()); in main()
64 tz1->dst_local_start_time(2003) == ptime(date(2003,Apr,30),hours(2))); in main()
66 tz1->dst_local_end_time(2003) == ptime(date(2003,Oct,30),hours(2))); in main()
[all …]
Dtestwcustom_time_zone.cpp46 wtime_zone_ptr tz1(new wcustom_time_zone(pst, hours(-8), of, rule1)); in main() local
52 tz1->dst_zone_abbrev() == std::wstring(L"PDT")); in main()
54 tz1->std_zone_abbrev() == std::wstring(L"PST")); in main()
56 tz1->std_zone_name() == std::wstring(L"Pacific Standard Time")); in main()
58 tz1->dst_zone_name() == std::wstring(L"Pacific Daylight Time")); in main()
60 check("dst offset", tz1->dst_offset() == hours(1)); in main()
61 check("base offset", tz1->base_utc_offset() == hours(-8)); in main()
62 check("has dst", tz1->has_dst()); in main()
65 tz1->dst_local_start_time(2003) == ptime(date(2003,Apr,30),hours(2))); in main()
67 tz1->dst_local_end_time(2003) == ptime(date(2003,Oct,30),hours(2))); in main()
[all …]
/third_party/glib/glib/tests/
Dgdatetime.c2873 GTimeZone *tz1 = NULL, *tz2 = NULL; in test_time_zone_caching() local
2880 tz1 = g_time_zone_new_identifier ("Europe/London"); in test_time_zone_caching()
2881 g_assert_nonnull (tz1); in test_time_zone_caching()
2884 g_time_zone_unref (tz1); in test_time_zone_caching()
2887 tz1 = g_time_zone_new_identifier ("GMT Standard Time"); in test_time_zone_caching()
2888 g_assert_nonnull (tz1); in test_time_zone_caching()
2891 g_time_zone_unref (tz1); in test_time_zone_caching()
2896 g_assert_true (tz1 == tz2); in test_time_zone_caching()
2904 tz1 = g_time_zone_new_identifier (NULL); in test_time_zone_caching()
2905 if (tz1 != NULL) in test_time_zone_caching()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java1555 …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 …]
DTimeZoneRegressionTest.java445 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()
DTimeZoneTest.java1407 SimpleTimeZone tz1 = new SimpleTimeZone( in TestFebruary() local
1455 TimeZone timezones[] = { tz1, tz2 }; in TestFebruary()
1831 TimeZone tz1 = TimeZone.getTimeZone(id); in TestHashCode() local
1835 if (tz1.hashCode() != tz2.hashCode()) { in TestHashCode()
1839 if (!tz1.toString().equals(tz2.toString())) { in TestHashCode()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneRuleTest.java1557 …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 …]
DTimeZoneRegressionTest.java448 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()
DTimeZoneTest.java1435 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/icu4c/source/test/intltest/
Dtztest.cpp1002 TimeZone *tz1 = TimeZone::createTimeZone(zone1); in TestShortZoneIDs() local
1005 if (!tz1) { in TestShortZoneIDs()
1012 if (tz1 && tz2) { in TestShortZoneIDs()
1014 tz2->setID(tz1->getID(itsID)); in TestShortZoneIDs()
1016 if (*tz1 != *tz2) { in TestShortZoneIDs()
1025 delete tz1; in TestShortZoneIDs()
1777 TimeZone* tz1 = TimeZone::createTimeZone(*id1); in TestCountries() local
1784 if(tz1->hasSameRules(*tz2)){ in TestCountries()
1789 delete tz1; in TestCountries()
1880 SimpleTimeZone tz1(-3 * U_MILLIS_PER_HOUR, // raw offset: 3h before (west of) GMT in TestFebruary() local
[all …]
Dtzregts.cpp556 SimpleTimeZone *tz1 = new SimpleTimeZone(0, "1", 0, 0, 0, 0, 2, 0, 0, 0, status); in Test4154537() local
567 if (tz1->useDaylightTime() || tz2->useDaylightTime() || in Test4154537()
575 if (!tz1->hasSameRules(*tz2)) { in Test4154537()
581 delete tz1; in Test4154537()
Dtzrulets.cpp52 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2,
2526 static UBool hasEquivalentTransitions(/*const*/ BasicTimeZone& tz1, /*const*/BasicTimeZone& tz2, in hasEquivalentTransitions() argument
2533 if (tz1.hasSameRules(tz2)) { in hasEquivalentTransitions()
2538 tz1.getOffset(start, FALSE, raw1, dst1, status); in hasEquivalentTransitions()
2561 UBool avail1 = tz1.getNextTransition(time, FALSE, tr1); in hasEquivalentTransitions()
2572 tz1.getNextTransition(tr1.getTime(), FALSE, tr1); in hasEquivalentTransitions()
Dincaltst.cpp188 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java696 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/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTimeZoneFormatTest.java699 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/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py1319 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/
Ddatetime.rst1625 >>> 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/
Ddatetimetester.py149 tz1 = _TZInfo()
150 dt1 = datetime(2014, 7, 21, 11, 32, 3, 0, tz1)