• Home
  • Raw
  • Download

Lines Matching refs:utcoffset

118 ``d.tzinfo.utcoffset(d)`` does not return ``None``.  If ``d.tzinfo`` is
119 ``None``, or if ``d.tzinfo`` is not ``None`` but ``d.tzinfo.utcoffset(d)``
121 if ``t.tzinfo`` is not ``None`` and ``t.tzinfo.utcoffset(None)`` does not return
847 result is ``(a.replace(tzinfo=None) - a.utcoffset()) - (b.replace(tzinfo=None)
848 - b.utcoffset())`` except that the implementation never overflows.
859 offsets (obtained from ``self.utcoffset()``).
910 :meth:`utcoffset` and :meth:`dst` methods must not return ``None``. *self* must
911 be aware (``self.tzinfo`` must not be ``None``, and ``self.utcoffset()`` must
917 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will usually have
918 the same date and time data as ``dt - dt.utcoffset()``. The discussion
936 utc = (self - self.utcoffset()).replace(tzinfo=tz)
941 .. method:: datetime.utcoffset()
944 ``self.tzinfo.utcoffset(self)``, and raises an exception if the latter doesn't
984 ``d.utcoffset()``, and a :class:`time.struct_time` for the normalized time is
1022 If :meth:`utcoffset` does not return ``None``, a 6-character string is
1032 ... def utcoffset(self, dt): return timedelta(minutes=-399)
1118 ... def utcoffset(self, dt):
1134 ... def utcoffset(self, dt):
1153 >>> dt1.utcoffset()
1158 >>> dt2.utcoffset()
1249 subtracting their UTC offsets (obtained from ``self.utcoffset()``). In order
1260 only if, after converting it to minutes and subtracting :meth:`utcoffset` (or
1277 self.microsecond is 0, HH:MM:SS If :meth:`utcoffset` does not return ``None``, a
1301 .. method:: time.utcoffset()
1304 ``self.tzinfo.utcoffset(None)``, and raises an exception if the latter doesn't
1328 ... def utcoffset(self, dt):
1380 .. method:: tzinfo.utcoffset(self, dt)
1385 time zone and DST adjustments, :meth:`utcoffset` should return their sum. If
1389 than one day). Most implementations of :meth:`utcoffset` will probably look
1395 If :meth:`utcoffset` does not return ``None``, :meth:`dst` should not return
1398 The default implementation of :meth:`utcoffset` raises
1407 (see :meth:`utcoffset` for details). Note that DST offset, if applicable, has
1408 already been added to the UTC offset returned by :meth:`utcoffset`, so there's
1418 ``tz.utcoffset(dt) - tz.dst(dt)``
1474 may be more useful for ``utcoffset(None)`` to return the standard UTC offset, as
1510 dtoff = dt.utcoffset()
1753 :meth:`utcoffset` is transformed into a 5-character string of the form
1756 minutes. For example, if :meth:`utcoffset` returns