/external/python/dateutil/dateutil/test/ |
D | test_isoparser.py | 20 tzo = tz.tzoffset(None, timedelta(hours=h, minutes=m_td)) 72 def _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset, argument 74 tzi, offset_str = tzoffset 98 def test_ymd_h(dt, date_fmt, tzoffset): argument 99 _isoparse_date_and_time(dt, date_fmt, '%H', tzoffset) 106 def test_ymd_hm(dt, date_fmt, time_fmt, tzoffset): argument 107 _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset) 117 def test_ymd_hms(dt, date_fmt, time_fmt, tzoffset): argument 118 _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset) 126 def test_ymd_hms_micro(dt, date_fmt, time_fmt, tzoffset, precision): argument [all …]
|
D | test_tz.py | 638 UTCp4 = tz.tzoffset('UTC+4', 14400) 667 @pytest.mark.tzoffset 670 est = tz.tzoffset('EST', timedelta(hours=-5)) 671 est_s = tz.tzoffset('EST', -18000) 676 gmt5 = tz.tzoffset(None, -18000) # -5:00 682 tz_offset = tz.tzoffset('+3', 3600) 688 tzo = tz.tzoffset(tname, -5 * 3600) 692 utc = tz.tzoffset('UTC', 0) 693 gmt = tz.tzoffset('GMT', 0) 699 o_utc = tz.tzoffset('UTC', 0) [all …]
|
D | test_imports.py | 108 from dateutil.tz import tzoffset
|
D | test_parser.py | 10 from dateutil.tz import tzoffset 63 self.brsttz = tzoffset("BRST", -10800)
|
/external/python/cpython3/Lib/email/ |
D | _parseaddr.py | 151 tzoffset = None 154 tzoffset = _timezones[tz] 157 tzoffset = int(tz) 160 if tzoffset==0 and tz.startswith('-'): 161 tzoffset = None 163 if tzoffset: 164 if tzoffset < 0: 166 tzoffset = -tzoffset 169 tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60) 171 return [yy, mm, dd, thh, tmm, tss, 0, 1, -1, tzoffset]
|
/external/python/cpython2/Lib/email/ |
D | _parseaddr.py | 122 tzoffset = None 125 tzoffset = _timezones[tz] 128 tzoffset = int(tz) 132 if tzoffset: 133 if tzoffset < 0: 135 tzoffset = -tzoffset 138 tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60) 140 return yy, mm, dd, thh, tmm, tss, 0, 1, -1, tzoffset
|
/external/python/dateutil/dateutil/parser/ |
D | _parser.py | 360 def tzoffset(self, name): member in parserinfo 381 if res.tzoffset == 0 and not res.tzname or res.tzname == 'Z': 383 res.tzoffset = 0 384 elif res.tzoffset != 0 and res.tzname and self.utczone(res.tzname): 385 res.tzoffset = 0 754 elif self._could_be_tzname(res.hour, res.tzname, res.tzoffset, l[i]): 756 res.tzoffset = info.tzoffset(res.tzname) 765 res.tzoffset = None 793 res.tzoffset = signal * (hour_offset * 3600 + min_offset * 60) 1017 def _could_be_tzname(self, hour, tzname, tzoffset, token): argument [all …]
|
D | isoparser.py | 398 return tz.tzoffset(None, mult * (hours * 60 + minutes) * 60)
|
/external/python/cpython2/Lib/ |
D | rfc822.py | 920 tzoffset = None 923 tzoffset = _timezones[tz] 926 tzoffset = int(tz) 930 if tzoffset: 931 if tzoffset < 0: 933 tzoffset = -tzoffset 936 tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60) 937 return (yy, mm, dd, thh, tmm, tss, 0, 1, 0, tzoffset)
|
/external/python/dateutil/docs/ |
D | examples.rst | 885 >>> BRSTTZ = tzoffset("BRST", -10800) 897 tzinfo=tzoffset('BRST', -10800)) 901 tzinfo=tzoffset('BRST', -10800)) 982 tzinfo=tzoffset(None, -10800)) 992 tzinfo=tzoffset(None, -10800)) 1019 tzinfo=tzoffset(None, -10800)) 1023 tzinfo=tzoffset(None, -10800)) 1167 tzinfo=tzoffset(None, -10800)) 1211 tzoffset examples 1214 .. doctest:: tzoffset [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | putiltst.c | 208 int32_t tzoffset = uprv_timezone(); in TestPUtilAPI() local 209 log_verbose("Value returned from uprv_timezone = %d\n", tzoffset); in TestPUtilAPI() 210 if (tzoffset != 28800) { in TestPUtilAPI() 213 if ((tzoffset % 1800 != 0)) { in TestPUtilAPI() 214 …e: t_timezone offset of %ld (for %s : %s) is not a multiple of 30min.", tzoffset, uprv_tzname(0), … in TestPUtilAPI()
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 104 if not isinstance(other, (tzutc, tzoffset)): 108 (isinstance(other, tzoffset) and other._offset == ZERO)) 122 class tzoffset(datetime.tzinfo): class 171 if not isinstance(other, tzoffset): 298 elif isinstance(other, tzoffset):
|
/external/icu/icu4c/source/test/intltest/ |
D | tztest.cpp | 128 int32_t tzoffset = uprv_timezone(); in TestGenericAPI() local 129 if ((tzoffset % 900) != 0) { in TestGenericAPI() 137 infoln("WARNING: t_timezone may be incorrect. It is not a multiple of 15min.", tzoffset); in TestGenericAPI() 142 logln("hostZone->getRawOffset() = %d , tzoffset = %d", hostZoneRawOffset, tzoffset * (-1000)); in TestGenericAPI() 145 if (hostZoneRawOffset != tzoffset * (-1000)) { in TestGenericAPI()
|
D | caltest.cpp | 390 int32_t tzoffset = 123400; in TestGenericAPI() local 392 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI() 452 z->getRawOffset() != tzoffset) in TestGenericAPI()
|
/external/python/dateutil/ |
D | NEWS | 109 - Changed the behavior of tz.tzoffset to return the same object when passed the 113 - Added .instance alternate constructors for tz.tzoffset and tz.tzstr, to 118 equality with tzoffset and tzutc. (gh pr #598) 177 - Fixed dangling parenthesis in tzoffset documentation (gh pr #461) 201 - Improved performance of tzutc and tzoffset objects. (gh pr #391) 252 - tzoffset and tzrange objects now accept either a number of seconds or a
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 773 int *second, int *microsecond, int *tzoffset, in parse_isoformat_time() argument 828 *tzoffset = tzsign * ((tzhour * 3600) + (tzminute * 60) + tzsecond); in parse_isoformat_time() 1293 tzinfo_from_isoformat_results(int rv, int tzoffset, int tz_useconds) in tzinfo_from_isoformat_results() argument 1298 if (tzoffset == 0) { in tzinfo_from_isoformat_results() 1303 PyObject *delta = new_delta(0, tzoffset, tz_useconds, 1); in tzinfo_from_isoformat_results() 4359 int tzoffset, tzimicrosecond = 0; in time_fromisoformat() local 4362 &tzoffset, &tzimicrosecond); in time_fromisoformat() 4368 PyObject *tzinfo = tzinfo_from_isoformat_results(rv, tzoffset, in time_fromisoformat() 5038 int tzoffset = 0, tzusec = 0; in datetime_fromisoformat() local 5064 µsecond, &tzoffset, &tzusec); in datetime_fromisoformat() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | timezone.cpp | 848 int32_t tzoffset = z->getRawOffset(); in create() local 851 if (tzoffset != *rawOffset) { in create()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 281 int tzoffset = 123400; in TestGenericAPI() local 283 SimpleTimeZone zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 278 int tzoffset = 123400; in TestGenericAPI() local 280 SimpleTimeZone zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
|
/external/python/cpython2/Lib/email/test/ |
D | test_email_renamed.py | 1091 tzoffset = ' %s%04d' % (sign, tzsecs // 36) 1094 time.localtime(now)) + tzoffset
|
D | test_email.py | 1156 tzoffset = ' %s%04d' % (sign, tzsecs // 36) 1159 time.localtime(now)) + tzoffset
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_email.py | 1732 tzoffset = ' %s%04d' % (sign, tzsecs / 36) 1735 time.localtime(now)) + tzoffset
|