pynyaasi.utils.time

unix_timestamp_to_datetime

pynyaasi.utils.time.unix_timestamp_to_datetime(unix_timestamp)[source]

Convert a Unix timestamp to a datetime object in the local time zone.

Parameters:

unix_timestamp (float) – The Unix timestamp

Returns:

The corresponding datetime object in the local time zone

Return type:

datetime.datetime