• Home
  • Raw
  • Download

Lines Matching refs:aware

20 There are two kinds of date and time objects: "naive" and "aware".
22 An aware object has sufficient knowledge of applicable algorithmic and
24 information, to locate itself relative to other aware objects. An aware object
35 For applications requiring aware objects, :class:`.datetime` and :class:`.time`
116 An object of type :class:`.time` or :class:`.datetime` may be naive or aware.
117 A :class:`.datetime` object *d* is aware if ``d.tzinfo`` is not ``None`` and
120 returns ``None``, *d* is naive. A :class:`.time` object *t* is aware
124 The distinction between naive and aware doesn't apply to :class:`timedelta`
826 input is an aware object.
831 datetime, and no time zone adjustments are done even if the input is aware.
837 both operands are naive, or if both are aware. If one is aware and the other is
840 If both are naive, or both are aware and have the same :attr:`~.datetime.tzinfo` attribute,
845 If both are aware and have different :attr:`~.datetime.tzinfo` attributes, ``a-b`` acts
854 If one comparand is naive and the other is aware, :exc:`TypeError` is raised.
855 If both comparands are aware, and have the same :attr:`~.datetime.tzinfo` attribute, the
857 compared. If both comparands are aware and have different :attr:`~.datetime.tzinfo`
899 ``tzinfo=None`` can be specified to create a naive datetime from an aware
911 be aware (``self.tzinfo`` must not be ``None``, and ``self.utcoffset()`` must
925 merely want to remove the time zone object from an aware datetime *dt* without
983 If *d* is aware, *d* is normalized to UTC time, by subtracting
1245 is aware, :exc:`TypeError` is raised. If both comparands are aware, and have
1247 ignored and the base times are compared. If both comparands are aware and
1271 aware :class:`.time`, without conversion of the time data.
1376 methods. Exactly which methods are needed depends on the uses made of aware
1393 return CONSTANT + self.dst(dt) # daylight-aware class
1750 For an aware object: