Home
last modified time | relevance | path

Searched refs:tzstr (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py935 def zone_from_tzstr(self, tzstr): argument
942 zonefile.write(tzstr.encode("ascii"))
947 return self.klass.from_file(zonefile, key=tzstr)
950 for tzstr, cases in self.test_cases.items():
951 with self.subTest(tzstr=tzstr):
952 zi = self.zone_from_tzstr(tzstr)
957 with self.subTest(tzstr=tzstr, dt=dt, offset=offset):
963 for tzstr, cases in self.test_cases.items():
964 with self.subTest(tzstr=tzstr):
965 zi = self.zone_from_tzstr(tzstr)
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp196 UnicodeString tzstr; in TestTimeZoneRoundTrip() local
200 sdf->format(DATES[datidx], tzstr, fpos); in TestTimeZoneRoundTrip()
218 sdf->parse(tzstr, *outcal, pos); in TestTimeZoneRoundTrip()
250 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
255 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
264 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
284 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
289 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
313 while (idx < tzstr.length()) { in TestTimeZoneRoundTrip()
314 UChar32 cp = tzstr.char32At(idx); in TestTimeZoneRoundTrip()
[all …]
/third_party/icu/icu4c/source/test/perf/normperf/
Ddtfmtrtperf.h169 UnicodeString tzstr; in call() local
174 sdf->format(DATES[datidx], tzstr, fpos); in call()
191 sdf->parse(tzstr, *outcal, pos); in call()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DTimeZoneFormatTest.java166 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip() local
179 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
197 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
203 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
212 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
230 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
235 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
253 while (idx < tzstr.length()) { in TestTimeZoneRoundTrip()
254 int cp = tzstr.codePointAt(idx); in TestTimeZoneRoundTrip()
263 if (isOffsetFormat || tzstr.equals(localGMTString)) { in TestTimeZoneRoundTrip()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java163 String tzstr = sdf.format(DATES[datidx]); in TestTimeZoneRoundTrip() local
176 sdf.parse(tzstr, outcal, pos); in TestTimeZoneRoundTrip()
194 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
200 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
209 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
227 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
232 + ", time=" + DATES[datidx].getTime() + ", str=" + tzstr in TestTimeZoneRoundTrip()
250 while (idx < tzstr.length()) { in TestTimeZoneRoundTrip()
251 int cp = tzstr.codePointAt(idx); in TestTimeZoneRoundTrip()
260 if (isOffsetFormat || tzstr.equals(localGMTString)) { in TestTimeZoneRoundTrip()
[all …]
/third_party/ffmpeg/libavutil/tests/
Dparseutils.c172 static char tzstr[] = "TZ=CET-1"; in test_av_parse_time() local
195 putenv(tzstr); in test_av_parse_time()
/third_party/python/Lib/
Ddatetime.py334 tzstr = tstr[tz_pos:]
341 if len(tzstr) not in (5, 8, 15):
344 tz_comps = _parse_hh_mm_ss_ff(tzstr)