if tz is None:
    return datetime.datetime(*dtuple[:6])
return datetime.datetime(tzinfo=datetime.timezone(datetime.timedelta(
    seconds=tz)), *dtuple[:6])
In Python, how can I turn this format into a unix timestamp?