native_datetime_utc_fromtimestamp

Documentation for eth_defi.compat.native_datetime_utc_fromtimestamp function.

native_datetime_utc_fromtimestamp(timestamp)

Convert timestamp to naive UTC datetime object.

Replacement for the deprecated datetime.datetime.utcfromtimestamp().

Parameters

timestamp (float) – Unix timestamp (seconds since epoch)

Return type

datetime.datetime