Lines Matching refs:fromtimestamp
490 This is equivalent to ``date.fromtimestamp(time.time())``.
492 .. classmethod:: date.fromtimestamp(timestamp)
502 timestamp, leap seconds are ignored by :meth:`fromtimestamp`.
757 >>> today == date.fromtimestamp(time.time())
856 datetime.fromtimestamp(time.time())
858 See also :meth:`now`, :meth:`fromtimestamp`.
895 .. classmethod:: datetime.fromtimestamp(timestamp, tz=None)
905 :meth:`fromtimestamp` may raise :exc:`OverflowError`, if the timestamp is out of
911 their notion of a timestamp, leap seconds are ignored by :meth:`fromtimestamp`,
924 :meth:`fromtimestamp` may return instances with :attr:`.fold` set to 1.
936 To get an aware :class:`.datetime` object, call :meth:`fromtimestamp`::
938 datetime.fromtimestamp(timestamp, timezone.utc)
954 ``datetime.fromtimestamp(timestamp, tz=timezone.utc)``.
1608 # See datetime.astimezone or fromtimestamp.