Home
last modified time | relevance | path

Searched refs:tzoffset (Results 1 – 23 of 23) sorted by relevance

/external/python/dateutil/dateutil/test/
Dtest_isoparser.py20 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)
127 def test_ymd_hms_micro(dt, date_fmt, time_fmt, tzoffset, precision): argument
[all …]
Dtest_tz.py643 UTCp4 = tz.tzoffset('UTC+4', 14400)
672 @pytest.mark.tzoffset
675 est = tz.tzoffset('EST', timedelta(hours=-5))
676 est_s = tz.tzoffset('EST', -18000)
681 gmt5 = tz.tzoffset(None, -18000) # -5:00
687 tz_offset = tz.tzoffset('+3', 3600)
693 tzo = tz.tzoffset(tname, -5 * 3600)
697 utc = tz.tzoffset('UTC', 0)
698 gmt = tz.tzoffset('GMT', 0)
704 o_utc = tz.tzoffset('UTC', 0)
[all …]
Dtest_parser.py10 from dateutil.tz import tzoffset
245 self.brsttz = tzoffset("BRST", -10800)
335 tzinfo=tzoffset(None, 10800)))
350 tzinfo=tzoffset(None, 10800)))
Dtest_imports.py108 from dateutil.tz import tzoffset
/external/python/cpython3/Lib/email/
D_parseaddr.py151 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.py122 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.py360 def tzoffset(self, name): member in parserinfo
391 if ((res.tzoffset == 0 and not res.tzname) or
394 res.tzoffset = 0
395 elif res.tzoffset != 0 and res.tzname and self.utczone(res.tzname):
396 res.tzoffset = 0
796 elif self._could_be_tzname(res.hour, res.tzname, res.tzoffset, l[i]):
798 res.tzoffset = info.tzoffset(res.tzname)
807 res.tzoffset = None
835 res.tzoffset = signal * (hour_offset * 3600 + min_offset * 60)
1059 def _could_be_tzname(self, hour, tzname, tzoffset, token): argument
[all …]
Disoparser.py407 return tz.tzoffset(None, mult * (hours * 60 + minutes) * 60)
/external/python/cpython2/Lib/
Drfc822.py920 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/
Dexamples.rst885 >>> 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))
1224 tzoffset examples
1227 .. doctest:: tzoffset
[all …]
Dtz.rst35 .. autoclass:: tzoffset
/external/icu/icu4c/source/test/cintltst/
Dputiltst.c211 int32_t tzoffset = uprv_timezone(); in TestPUtilAPI() local
212 log_verbose("Value returned from uprv_timezone = %d\n", tzoffset); in TestPUtilAPI()
213 if (tzoffset != 28800) { in TestPUtilAPI()
216 if ((tzoffset % 1800 != 0)) { in TestPUtilAPI()
217 …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/
Dtz.py109 if not isinstance(other, (tzutc, tzoffset)):
113 (isinstance(other, tzoffset) and other._offset == ZERO))
127 class tzoffset(datetime.tzinfo): class
177 if not isinstance(other, tzoffset):
304 elif isinstance(other, tzoffset):
/external/icu/icu4c/source/test/intltest/
Dtztest.cpp129 int32_t tzoffset = uprv_timezone(); in TestGenericAPI() local
130 if ((tzoffset % 900) != 0) { in TestGenericAPI()
138 infoln("WARNING: t_timezone may be incorrect. It is not a multiple of 15min.", tzoffset); in TestGenericAPI()
143 logln("hostZone->getRawOffset() = %d , tzoffset = %d", hostZoneRawOffset, tzoffset * (-1000)); in TestGenericAPI()
146 if (hostZoneRawOffset != tzoffset * (-1000)) { in TestGenericAPI()
Dcaltest.cpp400 int32_t tzoffset = 123400; in TestGenericAPI() local
402 SimpleTimeZone *zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
462 z->getRawOffset() != tzoffset) in TestGenericAPI()
/external/python/cpython3/Modules/
D_datetimemodule.c788 int *second, int *microsecond, int *tzoffset, in parse_isoformat_time() argument
843 *tzoffset = tzsign * ((tzhour * 3600) + (tzminute * 60) + tzsecond); in parse_isoformat_time()
1312 tzinfo_from_isoformat_results(int rv, int tzoffset, int tz_useconds) in tzinfo_from_isoformat_results() argument
1317 if (tzoffset == 0) { in tzinfo_from_isoformat_results()
1322 PyObject *delta = new_delta(0, tzoffset, tz_useconds, 1); in tzinfo_from_isoformat_results()
4460 int tzoffset, tzimicrosecond = 0; in time_fromisoformat() local
4463 &tzoffset, &tzimicrosecond); in time_fromisoformat()
4469 PyObject *tzinfo = tzinfo_from_isoformat_results(rv, tzoffset, in time_fromisoformat()
5139 int tzoffset = 0, tzusec = 0; in datetime_fromisoformat() local
5165 &microsecond, &tzoffset, &tzusec); in datetime_fromisoformat()
[all …]
/external/python/dateutil/
DNEWS17 - Switched the ``tzoffset``, ``tzstr`` and ``gettz`` caches over to using weak
299 - Changed the behavior of tz.tzoffset to return the same object when passed the
303 - Added .instance alternate constructors for tz.tzoffset and tz.tzstr, to
308 equality with tzoffset and tzutc. (gh pr #598)
367 - Fixed dangling parenthesis in tzoffset documentation (gh pr #461)
391 - Improved performance of tzutc and tzoffset objects. (gh pr #391)
442 - tzoffset and tzrange objects now accept either a number of seconds or a
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCompatibilityTest.java278 int tzoffset = 123400; in TestGenericAPI() local
280 SimpleTimeZone zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
/external/icu/icu4c/source/i18n/
Dtimezone.cpp862 int32_t tzoffset = z->getRawOffset(); in create() local
865 if (tzoffset != *rawOffset) { in create()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCompatibilityTest.java281 int tzoffset = 123400; in TestGenericAPI() local
283 SimpleTimeZone zone = new SimpleTimeZone(tzoffset, tzid); in TestGenericAPI()
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py1091 tzoffset = ' %s%04d' % (sign, tzsecs // 36)
1094 time.localtime(now)) + tzoffset
Dtest_email.py1156 tzoffset = ' %s%04d' % (sign, tzsecs // 36)
1159 time.localtime(now)) + tzoffset
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py1741 tzoffset = ' %s%04d' % (sign, tzsecs / 36)
1744 time.localtime(now)) + tzoffset