Home
last modified time | relevance | path

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

/external/python/dateutil/dateutil/parser/
Disoparser.py169 def parse_tzstr(self, tzstr, zero_as_utc=True): argument
186 return self._parse_tzstr(tzstr, zero_as_utc=zero_as_utc)
369 def _parse_tzstr(self, tzstr, zero_as_utc=True): argument
370 if tzstr == b'Z':
373 if len(tzstr) not in {3, 5, 6}:
376 if tzstr[0:1] == b'-':
378 elif tzstr[0:1] == b'+':
383 hours = int(tzstr[1:3])
384 if len(tzstr) == 3:
387 minutes = int(tzstr[(4 if tzstr[3:4] == self._TIME_SEP else 3):])
D_parser.py1122 tzinfo = tz.tzstr(tzdata)
1334 def parse(self, tzstr): argument
1336 l = [x for x in re.split(r'([,:.]|[a-zA-Z]+|[0-9]+)',tzstr) if x]
1444 warn(('Parsed time zone "%s"' % tzstr) +
1529 def _parsetz(tzstr): argument
1530 return DEFAULTTZPARSER.parse(tzstr)
/external/python/dateutil/dateutil/test/
Dtest_tz.py1152 self.assertEqual(tz.tzstr("EST5EDT"),
1162 self.assertEqual(tz.tzstr("EST5EDT"),
1210 datetime(2007, 8, 6, 6, 10, tzinfo=tz.tzstr("GMT+2")))
1261 @pytest.mark.tzstr
1280 return tz.tzstr(tzname_map[tzname])
1286 tzinfo=tz.tzstr(str("EST5EDT"))).tzname(), "EST")
1288 tzinfo=tz.tzstr(str("EST5EDT"))).tzname(), "EDT")
1291 TZS1 = tz.tzstr('EST5EDT4')
1294 TZS2 = tz.tzstr('ET5EDT4')
1298 TZS3 = tz.tzstr('EST5EMT')
[all …]
Dtest_internals.py86 @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")
Dtest_isoparser.py319 def test_parse_tzstr_zero_as_utc(tzstr, zero_as_utc): argument
320 tzi = isoparser().parse_tzstr(tzstr, zero_as_utc=zero_as_utc)
332 def test_parse_tzstr_fails(tzstr, exception): argument
334 isoparser().parse_tzstr(tzstr)
Dtest_imports.py112 from dateutil.tz import tzstr
Dtest_rrule.py2699 TZ = tz.tzstr('UTC+04')
2700 def parse_tzstr(tzstr): argument
2701 if tzstr is None:
2704 return tz.tzstr(tzstr)
2721 def tzinfos(tzstr): argument
2722 if tzstr == 'America/New_York':
/external/icu/icu4c/source/test/intltest/
Dtzfmttst.cpp189 UnicodeString tzstr; in TestTimeZoneRoundTrip() local
193 sdf->format(DATES[datidx], tzstr, fpos); in TestTimeZoneRoundTrip()
211 sdf->parse(tzstr, *outcal, pos); in TestTimeZoneRoundTrip()
243 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
248 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
257 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
277 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
282 + ", time=" + DATES[datidx] + ", str=" + tzstr in TestTimeZoneRoundTrip()
306 while (idx < tzstr.length()) { in TestTimeZoneRoundTrip()
307 UChar32 cp = tzstr.char32At(idx); in TestTimeZoneRoundTrip()
[all …]
/external/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()
/external/python/dateutil/docs/
Dexamples.rst1252 tzstr examples
1262 daylight abbreviation was provided, `tzstr` will follow the
1277 .. testsetup:: tzstr
1282 from dateutil.tz import tzstr
1284 .. doctest:: tzstr
1296 And here is an example showing the same information using `tzstr`,
1299 .. doctest:: tzstr
1301 >>> tz1 = tzstr('EST+05EDT,M4.1.0,M10.5.0')
1302 >>> tz2 = tzstr('AEST-10AEDT-11,M10.5.0,M3.5.0')
1312 .. doctest:: tzstr
[all …]
/external/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 …]
/external/icu/android_icu4j/src/main/tests/android/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 …]
/external/python/dateutil/
DNEWS111 - Changed the behavior of tz.tzstr to return the same object when passed the
113 - Added .instance alternate constructors for tz.tzoffset and tz.tzstr, to
119 - Deprecated the idiosyncratic tzstr format mentioned in several examples but
125 - Fixed issue where the tz.tzstr constructor would erroneously succeed if
126 passed an invalid value for tzstr. Fixed by @pablogsal (gh issue #259,
241 tzrange and tzstr now expose a transitions() function, which returns the
367 - An issue causing tzstr() to crash on Python 2.x was fixed. (lp: 1331576,
421 - Fixed issue with parsing of tzstr on Python 2.7.x; tzstr will now be decoded
540 - Prevent tzstr from introducing daylight timings in strings that didn't
DCONTRIBUTING.md49 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
/external/python/dateutil/dateutil/tz/
Dtz.py970 class tzstr(tzrange): class
1494 tz = tzstr(name)
/external/python/cpython3/Lib/
Ddatetime.py329 tzstr = tstr[tz_pos:]
336 if len(tzstr) not in (5, 8, 15):
339 tz_comps = _parse_hh_mm_ss_ff(tzstr)