Home
last modified time | relevance | path

Searched refs:utcoff (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py106 return self._find_trans(dt).utcoff
150 shift = tti_prev.utcoff - tti.utcoff
152 dt += tti.utcoff
227 trans_idx, trans_utc, utcoff, isdst, abbr, tz_str = _common.load_data(
232 dstoff = self._utcoff_to_dstoff(trans_idx, utcoff, isdst)
235 trans_local = self._ts_to_local(trans_idx, trans_utc, utcoff)
242 for utcoffset, dstoffset, tzname in zip(utcoff, dstoff, abbr)
330 utcoff = utcoffsets[idx]
335 dstoff = utcoff - utcoffsets[comp_idx]
346 dstoff = utcoff - utcoffsets[comp_idx]
[all …]
D_common.py71 utcoff, isdst, abbrind = zip(
75 utcoff = ()
124 return trans_idx, trans_list_utc, utcoff, isdst, abbr, tz_str
/external/python/cpython3/Modules/
D_zoneinfo.c20 PyObject *utcoff; member
114 ts_to_local(size_t *trans_idx, int64_t *trans_utc, long *utcoff,
465 Py_INCREF(tti->utcoff); in zoneinfo_utcoffset()
466 return tti->utcoff; in zoneinfo_utcoffset()
568 PyObject *tmp = PyNumber_Add(dt, tti->utcoff); in zoneinfo_fromutc()
765 out->utcoff = NULL; in build_ttinfo()
770 out->utcoff = load_timedelta(utcoffset); in build_ttinfo()
771 if (out->utcoff == NULL) { in build_ttinfo()
791 Py_XDECREF(ttinfo->utcoff); in xdecref_ttinfo()
802 if ((rv = PyObject_RichCompareBool(tti0->utcoff, tti1->utcoff, Py_EQ)) < in ttinfo_eq()
[all …]
/external/rust/crates/chrono/src/sys/
Dunix.rs42 fn tm_to_rust_tm(tm: &libc::tm, utcoff: i32, rust_tm: &mut Tm) { in tm_to_rust_tm()
52 rust_tm.tm_utcoff = utcoff; in tm_to_rust_tm()
/external/python/cpython3/Lib/test/test_zoneinfo/
Dtest_zoneinfo.py854 utcoff = int(offset.utcoffset.total_seconds())
858 ttinfos.append((utcoff, isdst, abbrind))