Navid Amin
06/22/2023, 6:59 PMAdam Ward
06/22/2023, 8:02 PMfrom datetime import datetime, timezone
import tzlocal
def human_readable_date_with_tz(posix: float, tz: timezone = tzlocal.get_localzone()) -> str:
converted_unix = datetime.fromtimestamp(posix, tz)
return datetime.strftime(converted_unix, "%Y-%m-%dT%H:%M:%S %z")