Lines Matching refs:astimezone
903 .. method:: datetime.astimezone(tz)
914 If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no
917 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will usually have
929 :class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`.
930 Ignoring error cases, :meth:`astimezone` acts like::
932 def astimezone(self, tz):
1161 >>> dt3 = dt2.astimezone(GMT2())
1423 only on geographic location. The implementation of :meth:`datetime.astimezone`
1427 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless.
1488 This is called from the default :class:`datetime.astimezone()`
1501 for political reasons. The default implementations of :meth:`astimezone` and
1544 ``astimezone(Eastern)`` won't deliver a result with ``hour == 2`` on the day DST
1545 begins. In order for :meth:`astimezone` to make this guarantee, the
1554 :meth:`astimezone` mimics the local clock's behavior by mapping two adjacent UTC
1557 :meth:`astimezone` to make this guarantee, the :meth:`tzinfo.dst` method must