@classmethod<EOL><INDENT>def fromtimestamp(cls, timestamp, tz=None):<DEDENT>
_check_tzinfo_arg(tz)<EOL>converter = _time.localtime if tz is None else _time.gmtime<EOL>self = cls._from_timestamp(converter, timestamp, tz)<EOL>if tz is not None:<EOL><INDENT>self = tz.fromutc(self)<EOL><DEDENT>return self<EOL>
Construct a datetime from a POSIX timestamp (like time.time()).

        A timezone info object may be passed in as well.