Lines Matching refs:aware
23 There are two kinds of date and time objects: "naive" and "aware".
25 An aware object has sufficient knowledge of applicable algorithmic and
27 information, to locate itself relative to other aware objects. An aware object
38 For applications requiring aware objects, :class:`.datetime` and :class:`.time`
130 An object of type :class:`.time` or :class:`.datetime` may be naive or aware.
131 A :class:`.datetime` object *d* is aware if ``d.tzinfo`` is not ``None`` and
134 returns ``None``, *d* is naive. A :class:`.time` object *t* is aware
138 The distinction between naive and aware doesn't apply to :class:`timedelta`
752 :class:`.datetime` object. An aware current UTC datetime can be obtained by
795 To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::
961 input is an aware object.
966 datetime, and no time zone adjustments are done even if the input is aware.
970 both operands are naive, or if both are aware. If one is aware and the other is
973 If both are naive, or both are aware and have the same :attr:`~.datetime.tzinfo` attribute,
978 If both are aware and have different :attr:`~.datetime.tzinfo` attributes, ``a-b`` acts
987 If one comparand is naive and the other is aware, :exc:`TypeError`
989 comparisons, naive instances are never equal to aware instances.
991 If both comparands are aware, and have the same :attr:`~.datetime.tzinfo` attribute, the
993 compared. If both comparands are aware and have different :attr:`~.datetime.tzinfo`
998 Equality comparisons between naive and aware :class:`.datetime`
1047 ``tzinfo=None`` can be specified to create a naive datetime from an aware
1077 merely want to remove the time zone object from an aware datetime *dt* without
1146 If *d* is aware, *d* is normalized to UTC time, by subtracting
1172 For aware :class:`.datetime` instances, the return value is computed
1490 is aware, :exc:`TypeError` is raised if an order comparison is attempted. For equality
1491 comparisons, naive instances are never equal to aware instances.
1493 If both comparands are aware, and have
1495 ignored and the base times are compared. If both comparands are aware and
1504 Equality comparisons between naive and aware :class:`~datetime.time` instances
1544 aware :class:`.time`, without conversion of the time data.
1691 methods. Exactly which methods are needed depends on the uses made of aware
1709 return CONSTANT + self.dst(dt) # daylight-aware class
1993 Return ``dt + offset``. The *dt* argument must be an aware
2218 For an aware object:
2249 aware :class:`.datetime` object will be produced. The ``tzinfo`` of the