def fromtimestamp(cls, t, tz=None):

        _check_tzinfo_arg(tz)
        if tz is None:
            converter = _time.localtime
        else:
            converter = _time.gmtime
        y, m, d, hh, mm, ss, weekday, jday, dst = converter(t)
        us = int((t % 1.0) * 1000000)

        if us == 1000001 or us == 999999:
            us = 0
            rounded = True
        else:
            rounded = False

        ss = min(ss, 59)    # clamp out leap seconds if the platform has them
        result = cls(y, m, d, hh, mm, ss, us, tz)
        if rounded:
            result += timedelta(seconds=1)
        if tz is not None:
            result = tz.fromutc(result)
        return result
Construct a datetime from a POSIX timestamp (like time.time()).
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/datetime.py/datetime.fromtimestamp