Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format_test.cc37 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument
39 time_zone::absolute_lookup al = tz.lookup(tp); \
60 void TestFormatSpecifier(time_point<D> tp, time_zone tz, const std::string& fmt, in TestFormatSpecifier() argument
62 EXPECT_EQ(ans, format(fmt, tp, tz)) << fmt; in TestFormatSpecifier()
63 EXPECT_EQ("xxx " + ans, format("xxx " + fmt, tp, tz)); in TestFormatSpecifier()
64 EXPECT_EQ(ans + " yyy", format(fmt + " yyy", tp, tz)); in TestFormatSpecifier()
65 EXPECT_EQ("xxx " + ans + " yyy", format("xxx " + fmt + " yyy", tp, tz)); in TestFormatSpecifier()
131 time_zone tz = utc_time_zone(); in TEST() local
135 EXPECT_EQ("", format("", tp, tz)); in TEST()
136 EXPECT_EQ(" ", format(" ", tp, tz)); in TEST()
[all …]
Dtime_zone_lookup_test.cc636 time_zone tz; in LoadZone() local
637 load_time_zone(name, &tz); in LoadZone()
638 return tz; in LoadZone()
643 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument
645 time_zone::absolute_lookup al = tz.lookup(tp); \
662 int VersionCmp(time_zone tz, const std::string& target) { in VersionCmp() argument
663 std::string version = tz.version(); in VersionCmp()
680 time_zone tz; in TEST() local
681 if (load_time_zone(zone, &tz)) { in TEST()
682 EXPECT_EQ(zone, tz.name()); in TEST()
[all …]
Dcctz_benchmark.cc716 cctz::time_zone tz; in TestTimeZone() local
717 cctz::load_time_zone("America/Los_Angeles", &tz); in TestTimeZone()
718 return tz; in TestTimeZone()
722 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneFirst() local
723 cctz::load_time_zone("UTC", &tz); // in case we're first in BM_Zone_LoadUTCTimeZoneFirst()
726 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneFirst()
732 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneLast() local
734 cctz::load_time_zone(name, &tz); // prime cache in BM_Zone_LoadUTCTimeZoneLast()
737 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneLast()
743 cctz::time_zone tz = cctz::utc_time_zone(); // in case we're first in BM_Zone_LoadTimeZoneFirst() local
[all …]
Dtime_zone_lookup.cc108 bool load_time_zone(const std::string& name, time_zone* tz) { in load_time_zone() argument
109 return time_zone::Impl::LoadTimeZone(name, tz); in load_time_zone()
117 time_zone tz; in fixed_time_zone() local
118 load_time_zone(FixedOffsetToName(offset), &tz); in fixed_time_zone()
119 return tz; in fixed_time_zone()
176 time_zone tz; in local_time_zone() local
177 load_time_zone(name, &tz); // Falls back to UTC. in local_time_zone()
181 return tz; in local_time_zone()
/third_party/tzdata/
Dchecktab.awk63 tz = $3
79 tz0 = tz
80 tztab[tz] = 1
81 tz2NR[tz] = zone_NR
131 tz = rules = ""
133 tz = $2
143 if (src != dst) tz = $3
151 if (tz && tz ~ /\// && tz !~ /^Etc\//) {
152 if (!tztab[tz] && FILENAME != "backward" \
154 printf "%s: no data for '%s'\n", zone_table, tz \
[all …]
Dchecklinks.awk47 for (tz in used) {
48 if (defined[tz] != Zone) {
49 if (!defined[tz]) {
50 printf "%s: Link to nowhere\n", tz
53 printf "%s: Link to link\n", tz
58 for (tz in shortcut) {
59 if (defined[shortcut[tz]] != defined[tz]) {
60 target = (!defined[tz] ? "absence" \
61 : defined[tz] == "\n" ? "zone" \
62 : defined[tz])
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime_zone_test.cc26 absl::TimeZone tz; in TEST() local
27 absl::TimeZone tz2 = tz; // Copy-construct in TEST()
28 EXPECT_EQ(tz, tz2); in TEST()
29 tz2 = tz; // Copy-assign in TEST()
30 EXPECT_EQ(tz, tz2); in TEST()
50 const absl::TimeZone tz(cz); in TEST() local
51 EXPECT_EQ(cz, cctz::time_zone(tz)); in TEST()
55 absl::TimeZone tz; in TEST() local
61 const absl::TimeZone tz = absl::FixedTimeZone(123); in TEST() local
63 EXPECT_EQ(tz, absl::TimeZone(cz)); in TEST()
[all …]
Dformat_test.cc30 void TestFormatSpecifier(absl::Time t, absl::TimeZone tz, in TestFormatSpecifier() argument
32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier()
33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier()
34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier()
36 absl::FormatTime("xxx " + fmt + " yyy", t, tz)); in TestFormatSpecifier()
44 absl::TimeZone tz = absl::UTCTimeZone(); in TEST() local
48 EXPECT_EQ("", absl::FormatTime("", t, tz)); in TEST()
49 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
50 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
51 EXPECT_EQ("xxx", absl::FormatTime("xxx", t, tz)); in TEST()
[all …]
/third_party/toybox/tests/
Ddate.test9 tz=Europe/Berlin
12 testing "-d @0" "TZ=$tz date -d @0" "Thu Jan 1 01:00:00 CET 1970\n" "" ""
13 testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected error" "expected er…
19 "TZ=$tz date -d 06021234" "Sun Jun 2 12:34:00 CEST $(date +%Y)\n" "" ""
21 "TZ=$tz date -d 1110143115.30" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
24 "TZ=$tz date -d 060212341982" "Wed Jun 2 12:34:00 CEST 1982\n" "" ""
26 "TZ=$tz date -d 111014312015.30" "Tue Nov 10 14:31:30 CET 2015\n" "" ""
29 testing "-d 1980-01-02" "TZ=$tz date -d 1980-01-02" "Wed Jan 2 00:00:00 CET 1980\n" "" ""
30 testing "-d 1980-01-02 12:34" "TZ=$tz date -d '1980-01-02 12:34'" "Wed Jan 2 12:34:00 CET 1980\n" …
31 testing "-d 1980-01-02 12:34:56" "TZ=$tz date -d '1980-01-02 12:34:56'" "Wed Jan 2 12:34:56 CET 19…
[all …]
/third_party/node/deps/v8/src/date/
Ddateparser-inl.h19 TimeZoneComposer tz; in Parse() local
72 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse()
100 } else if (tz.IsExpecting(n)) { in Parse()
101 tz.SetAbsoluteMinute(n); in Parse()
125 tz.Set(value); in Parse()
133 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) { in Parse()
136 tz.SetSign(token.ascii_sign()); in Parse()
148 tz.SetAbsoluteHour(n); in Parse()
150 tz.SetAbsoluteMinute(kNone); in Parse()
153 tz.SetAbsoluteHour(n); in Parse()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dgmtime_r_sup.c23 const char *tz; member
479 const char *tz = gResultData[i].tz; in gmtime_r_0100() local
482 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime_r_0100()
486 handlerChar = tz; in gmtime_r_0100()
489 handlerChar = tz; in gmtime_r_0100()
522 const char *tz = gResultData[i].tz; in gmtime64_r_0100() local
525 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime64_r_0100()
529 handlerChar = tz; in gmtime64_r_0100()
532 handlerChar = tz; in gmtime64_r_0100()
Dgmtime_sup.c23 const char *tz; member
479 const char *tz = gResultData[i].tz; in gmtime_0100() local
482 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime_0100()
486 handlerChar = tz; in gmtime_0100()
489 handlerChar = tz; in gmtime_0100()
522 const char *tz = gResultData[i].tz; in gmtime64_0100() local
525 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime64_0100()
529 handlerChar = tz; in gmtime64_0100()
532 handlerChar = tz; in gmtime64_0100()
Ddifftime_sup.c21 const char *tz; member
475 const char *tz = gResultData[i].tz; in difftime_0100() local
478 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in difftime_0100()
482 handlerChar = tz; in difftime_0100()
485 handlerChar = tz; in difftime_0100()
Dmktime_sup.c21 const char *tz; member
475 const char *tz = gResultData[i].tz; in mktime_0100() local
478 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in mktime_0100()
482 handlerChar = tz; in mktime_0100()
485 handlerChar = tz; in mktime_0100()
Dtime_sup.c27 const char *tz; member
46 const char *tz = gResultData[i].tz; in time_0100() local
49 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in time_0100()
53 handlerChar = tz; in time_0100()
56 handlerChar = tz; in time_0100()
/third_party/musl/libc-test/src/functionalext/common/
Dtime_test_data.h24 const char *tz; member
29 const char *tz; member
34 const char *tz; member
38 static const char *test_handle_path(const char *tz) in test_handle_path() argument
40 const char *p = tz; in test_handle_path()
41 if (tz) { in test_handle_path()
43 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in test_handle_path()
/third_party/icu/icu4c/source/tools/tzcode/
Dicuzdump.cpp119 void setTimeZone(TimeZone* tz) { in setTimeZone() argument
120 timezone = tz; in setTimeZone()
242 TimeZone* tz = NULL; in next() local
247 tz = TimeZone::createTimeZone(*zid); in next()
253 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
256 tz = TimeZone::createDefault(); in next()
261 return tz; in next()
378 TimeZone* tz = zit->next(); in main() local
379 if (tz == NULL) { in main()
382 dumper.setTimeZone(tz); in main()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dicuzdump.cpp119 void setTimeZone(TimeZone* tz) { in setTimeZone() argument
120 timezone = tz; in setTimeZone()
240 TimeZone* tz = NULL; in next() local
245 tz = TimeZone::createTimeZone(*zid); in next()
251 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
254 tz = TimeZone::createDefault(); in next()
259 return tz; in next()
376 TimeZone* tz = zit->next(); in main() local
377 if (tz == NULL) { in main()
380 dumper.setTimeZone(tz); in main()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtztest.cpp247 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument
251 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition()
253 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition()
254 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"t… in findTransition()
261 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition()
270 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition()
271 dateToString(min,s,tz)); in findTransition()
272 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition()
273 dateToString(max,s,tz)); in findTransition()
277 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch() argument
[all …]
Dtzbdtest.cpp118 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() argument
124 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone()
125 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone()
129 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone()
130 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone()
136 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone()
145 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone()
146 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone()
339 TimeZone *tz; in TestBoundaries() local
340 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java473 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local
474 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2()
476 dt.setTimeZone(tz); in TestDisplayName2()
478 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2()
484 if (tz.inDaylightTime(now)) { in TestDisplayName2()
486 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2()
489 errln(locale.getDisplayName() + ", " + tz.getID() + in TestDisplayName2()
638 void _testUsingBinarySearch(SimpleTimeZone tz, long min, long max, long expectedBoundary) in _testUsingBinarySearch() argument
641 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
643 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
[all …]
DTimeZoneBoundaryTest.java145 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument
155 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
157 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
162 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
164 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
172 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone()
183 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone()
184 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone()
189 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone()
651 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneTest.java477 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local
478 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2()
480 dt.setTimeZone(tz); in TestDisplayName2()
482 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2()
488 if (tz.inDaylightTime(now)) { in TestDisplayName2()
490 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2()
493 errln(locale.getDisplayName() + ", " + tz.getID() + in TestDisplayName2()
642 void _testUsingBinarySearch(SimpleTimeZone tz, long min, long max, long expectedBoundary) in _testUsingBinarySearch() argument
645 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
647 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
[all …]
DTimeZoneBoundaryTest.java148 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument
158 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
160 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
165 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
167 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
175 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone()
186 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone()
187 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone()
192 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone()
654 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h226 friend H AbslHashValue(H h, time_zone tz) { in AbslHashValue() argument
227 return H::combine(std::move(h), &tz.effective_impl()); in AbslHashValue()
241 bool load_time_zone(const std::string& name, time_zone* tz);
260 inline civil_second convert(const time_point<D>& tp, const time_zone& tz) { in convert() argument
261 return tz.lookup(tp).cs; in convert()
270 const time_zone& tz) { in convert() argument
271 const time_zone::civil_lookup cl = tz.lookup(cs); in convert()
315 const time_zone& tz) { in format() argument
318 return detail::format(fmt, p.first, n, tz); in format()
369 const time_zone& tz, time_point<D>* tpp) { in parse() argument
[all …]

12345678910>>...18