Lines Matching refs:fromtimestamp
487 This is equivalent to ``date.fromtimestamp(time.time())``.
489 .. classmethod:: date.fromtimestamp(timestamp)
499 timestamp, leap seconds are ignored by :meth:`fromtimestamp`.
754 >>> today == date.fromtimestamp(time.time())
853 datetime.fromtimestamp(time.time())
855 See also :meth:`now`, :meth:`fromtimestamp`.
892 .. classmethod:: datetime.fromtimestamp(timestamp, tz=None)
902 :meth:`fromtimestamp` may raise :exc:`OverflowError`, if the timestamp is out of
908 their notion of a timestamp, leap seconds are ignored by :meth:`fromtimestamp`,
921 :meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1.
933 To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::
935 datetime.fromtimestamp(timestamp, timezone.utc)
951 ``datetime.fromtimestamp(timestamp, tz=timezone.utc)``.
1605 # See datetime.astimezone or fromtimestamp.