Home
last modified time | relevance | path

Searched refs:tzoffset (Results 1 – 22 of 22) 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)
126 def test_ymd_hms_micro(dt, date_fmt, time_fmt, tzoffset, precision): argument
[all …]
Dtest_tz.py638 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 …]
Dtest_imports.py108 from dateutil.tz import tzoffset
Dtest_parser.py10 from dateutil.tz import tzoffset
63 self.brsttz = tzoffset("BRST", -10800)
/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
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 …]
Disoparser.py398 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))
1211 tzoffset examples
1214 .. doctest:: tzoffset
[all …]
/external/icu/icu4c/source/test/cintltst/
Dputiltst.c208 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/
Dtz.py104 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/
Dtztest.cpp128 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()
Dcaltest.cpp390 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/
DNEWS109 - 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.c773 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 &microsecond, &tzoffset, &tzusec); in datetime_fromisoformat()
[all …]
/external/icu/icu4c/source/i18n/
Dtimezone.cpp848 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/
DCompatibilityTest.java281 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/
DCompatibilityTest.java278 int tzoffset = 123400; in TestGenericAPI() local
280 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.py1732 tzoffset = ' %s%04d' % (sign, tzsecs / 36)
1735 time.localtime(now)) + tzoffset