datetime.from_unix
Return a datetime
created using the passed unix UTC timestamp as either a decimal or an integer.
Arguments:
def datetime.from_unix(
ts: <dec, int> = None,
):
Returns <datetime>
.
Example:
# Unix timestamp epoch in UTC, but as represented in the timezone
# of your site when you call 'info' on it.
epoch = datetime.from_unix(0)