/external/python/dateutil/dateutil/parser/ |
D | isoparser.py | 182 def parse_tzstr(self, tzstr, zero_as_utc=True): argument 199 return self._parse_tzstr(tzstr, zero_as_utc=zero_as_utc) 378 def _parse_tzstr(self, tzstr, zero_as_utc=True): argument 379 if tzstr == b'Z' or tzstr == b'z': 382 if len(tzstr) not in {3, 5, 6}: 385 if tzstr[0:1] == b'-': 387 elif tzstr[0:1] == b'+': 392 hours = int(tzstr[1:3]) 393 if len(tzstr) == 3: 396 minutes = int(tzstr[(4 if tzstr[3:4] == self._TIME_SEP else 3):])
|
D | _parser.py | 1166 tzinfo = tz.tzstr(tzdata) 1380 def parse(self, tzstr): argument 1382 l = [x for x in re.split(r'([,:.]|[a-zA-Z]+|[0-9]+)',tzstr) if x] 1490 warn(('Parsed time zone "%s"' % tzstr) + 1575 def _parsetz(tzstr): argument 1576 return DEFAULTTZPARSER.parse(tzstr)
|
/external/python/dateutil/dateutil/test/ |
D | test_tz.py | 1263 self.assertEqual(tz.tzstr("EST5EDT"), 1273 self.assertEqual(tz.tzstr("EST5EDT"), 1321 datetime(2007, 8, 6, 6, 10, tzinfo=tz.tzstr("GMT+2"))) 1372 @pytest.mark.tzstr 1391 return tz.tzstr(tzname_map[tzname]) 1397 tzinfo=tz.tzstr(str("EST5EDT"))).tzname(), "EST") 1399 tzinfo=tz.tzstr(str("EST5EDT"))).tzname(), "EDT") 1402 TZS1 = tz.tzstr('EST5EDT4') 1405 TZS2 = tz.tzstr('ET5EDT4') 1409 TZS3 = tz.tzstr('EST5EMT') [all …]
|
D | test_internals.py | 86 @pytest.mark.tzstr 89 tz1 = tz.tzstr("EST5EDT,5,4,0,7200,11,-3,0,7200") 92 tz2 = tz.tzstr("EST5EDT,4,1,0,7200,10,-1,0,7200")
|
D | test_isoparser.py | 334 def test_parse_tzstr_zero_as_utc(tzstr, zero_as_utc): argument 335 tzi = isoparser().parse_tzstr(tzstr, zero_as_utc=zero_as_utc) 347 def test_parse_tzstr_fails(tzstr, exception): argument 349 isoparser().parse_tzstr(tzstr)
|
D | test_imports.py | 112 from dateutil.tz import tzstr
|
D | test_rrule.py | 2704 TZ = tz.tzstr('UTC+04') 2705 def parse_tzstr(tzstr): argument 2706 if tzstr is None: 2709 return tz.tzstr(tzstr) 2726 def tzinfos(tzstr): argument 2727 if tzstr == 'America/New_York':
|
/external/python/cpython3/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 935 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 …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tzfmttst.cpp | 191 UnicodeString tzstr; in TestTimeZoneRoundTrip() local 195 sdf->format(DATES[datidx], tzstr, fpos); in TestTimeZoneRoundTrip() 213 sdf->parse(tzstr, *outcal, pos); in TestTimeZoneRoundTrip() 245 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip() 250 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip() 259 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip() 279 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip() 284 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip() 308 while (idx < tzstr.length()) { in TestTimeZoneRoundTrip() 309 UChar32 cp = tzstr.char32At(idx); in TestTimeZoneRoundTrip() [all …]
|
/external/icu/icu4c/source/test/perf/normperf/ |
D | dtfmtrtperf.h | 169 UnicodeString tzstr; in call() local 174 sdf->format(DATES[datidx], tzstr, fpos); in call() 191 sdf->parse(tzstr, *outcal, pos); in call()
|
/external/python/dateutil/docs/ |
D | examples.rst | 1265 tzstr examples 1275 daylight abbreviation was provided, `tzstr` will follow the 1290 .. testsetup:: tzstr 1295 from dateutil.tz import tzstr 1297 .. doctest:: tzstr 1309 And here is an example showing the same information using `tzstr`, 1312 .. doctest:: tzstr 1314 >>> tz1 = tzstr('EST+05EDT,M4.1.0,M10.5.0') 1315 >>> tz2 = tzstr('AEST-10AEDT-11,M10.5.0,M3.5.0') 1325 .. doctest:: tzstr [all …]
|
D | tz.rst | 48 .. autoclass:: tzstr
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 166 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 …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 163 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 …]
|
/external/python/dateutil/ |
D | CONTRIBUTING.md | 49 Fixed issue where the tz.tzstr constructor would erroneously succeed if passed 50 an invalid value for tzstr. Reported by @pganssle (gh issue #259). Fixed by 105 tox -e py36 -- -m tzstr 108 This will pass the `-m tzstr` parameter to `pytest`, running only the tests with the `tzstr` mark.
|
D | NEWS | 17 - Switched the ``tzoffset``, ``tzstr`` and ``gettz`` caches over to using weak 301 - Changed the behavior of tz.tzstr to return the same object when passed the 303 - Added .instance alternate constructors for tz.tzoffset and tz.tzstr, to 309 - Deprecated the idiosyncratic tzstr format mentioned in several examples but 315 - Fixed issue where the tz.tzstr constructor would erroneously succeed if 316 passed an invalid value for tzstr. Fixed by @pablogsal (gh issue #259, 431 tzrange and tzstr now expose a transitions() function, which returns the 557 - An issue causing tzstr() to crash on Python 2.x was fixed. (lp: 1331576, 611 - Fixed issue with parsing of tzstr on Python 2.7.x; tzstr will now be decoded 730 - Prevent tzstr from introducing daylight timings in strings that didn't
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 1031 class tzstr(tzrange): class 1652 tz = tzstr(name)
|
/external/python/cpython3/Lib/ |
D | datetime.py | 333 tzstr = tstr[tz_pos:] 340 if len(tzstr) not in (5, 8, 15): 343 tz_comps = _parse_hh_mm_ss_ff(tzstr)
|