Home
last modified time | relevance | path

Searched refs:_ttinfos (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/zoneinfo/
D_zoneinfo.py141 tti_prev, tti = self._ttinfos[idx - 2 : idx]
143 tti_prev = self._ttinfos[-1]
147 tti = self._ttinfos[0]
183 return self._ttinfos[idx]
247 self._ttinfos = [_ttinfo_list[idx] for idx in trans_idx]
255 if self._ttinfos:
256 self._tti_before = self._ttinfos[0]
264 if not self._ttinfos and not _ttinfo_list:
267 if self._ttinfos:
268 self._tz_after = self._ttinfos[-1]
/external/python/cpython3/Modules/
D_zoneinfo.c46 _ttinfo *_ttinfos; // Unique array of ttinfos for ease of deallocation member
317 if (self->_ttinfos != NULL) { in zoneinfo_dealloc()
319 xdecref_ttinfo(&(self->_ttinfos[i])); in zoneinfo_dealloc()
321 PyMem_Free(self->_ttinfos); in zoneinfo_dealloc()
847 self->_ttinfos = NULL; in load_data()
993 self->_ttinfos = PyMem_Malloc(self->num_ttinfos * sizeof(_ttinfo)); in load_data()
1001 if (build_ttinfo(utcoff[i], dstoff[i], tzname, &(self->_ttinfos[i]))) { in load_data()
1012 self->trans_ttinfos[i] = &(self->_ttinfos[ttinfo_idx]); in load_data()
1018 self->ttinfo_before = &(self->_ttinfos[i]); in load_data()
1026 self->ttinfo_before = &(self->_ttinfos[0]); in load_data()
[all …]