Lines Matching refs:tzinfo
415 if tz is not None and not isinstance(tz, tzinfo):
1114 class tzinfo: class
1142 if dt.tzinfo is not self:
1212 _tzinfo_class = tzinfo
1239 def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0): argument
1267 _check_tzinfo_arg(tzinfo)
1273 self._tzinfo = tzinfo
1300 def tzinfo(self): member in time
1506 tzinfo=True, *, fold=None): argument
1516 if tzinfo is True:
1517 tzinfo = self.tzinfo
1520 return type(self)(hour, minute, second, microsecond, tzinfo, fold=fold)
1537 def __setstate(self, string, tzinfo): argument
1538 if tzinfo is not None and not isinstance(tzinfo, _tzinfo_class):
1548 self._tzinfo = tzinfo
1572 microsecond=0, tzinfo=None, *, fold=0): argument
1592 _check_tzinfo_arg(tzinfo)
1601 self._tzinfo = tzinfo
1628 def tzinfo(self): member in datetime
1708 def combine(cls, date, time, tzinfo=True): argument
1714 if tzinfo is True:
1715 tzinfo = time.tzinfo
1718 tzinfo, fold=time.fold)
1824 minute=None, second=None, microsecond=None, tzinfo=True, argument
1841 if tzinfo is True:
1842 tzinfo = self.tzinfo
1846 microsecond, tzinfo, fold=fold)
1849 if self.tzinfo is None:
1863 elif not isinstance(tz, tzinfo):
1866 mytz = self.tzinfo
1873 mytz = self.replace(tzinfo=None)._local_timezone()
1880 utc = (self - myoffset).replace(tzinfo=tz)
2085 tzinfo=self._tzinfo))
2146 def __setstate(self, string, tzinfo): argument
2147 if tzinfo is not None and not isinstance(tzinfo, _tzinfo_class):
2159 self._tzinfo = tzinfo
2185 class timezone(tzinfo):
2207 self = tzinfo.__new__(cls)
2271 if dt.tzinfo is not self:
2307 _EPOCH = datetime(1970, 1, 1, tzinfo=timezone.utc)