Lines Matching refs:astimezone
1233 .. method:: datetime.astimezone(tz=None)
1248 If ``self.tzinfo`` is *tz*, ``self.astimezone(tz)`` is equal to *self*: no
1251 ``astz = dt.astimezone(tz)``, ``astz - astz.utcoffset()`` will have
1260 :class:`tzinfo` subclass to affect the result returned by :meth:`astimezone`.
1261 Ignoring error cases, :meth:`astimezone` acts like::
1263 def astimezone(self, tz):
1275 The :meth:`astimezone` method can now be called on naive instances that
1605 # See datetime.astimezone or fromtimestamp.
1635 >>> dt3 = dt2.astimezone(timezone.utc)
2002 only on geographic location. The implementation of :meth:`datetime.astimezone`
2006 :meth:`tzinfo.fromutc` to work correctly with :meth:`astimezone` regardless.
2070 This is called from the default :class:`datetime.astimezone()`
2083 for political reasons. The default implementations of :meth:`astimezone` and
2127 ``astimezone(Eastern)`` won't deliver a result with ``hour == 2`` on the day DST
2135 ... t = u.astimezone(Eastern)
2149 :meth:`astimezone` mimics the local clock's behavior by mapping two adjacent UTC
2158 ... t = u.astimezone(Eastern)