def datetime_to_timestamp(dt):
    delta = dt - datetime.utcfromtimestamp(0)
    return delta.seconds + delta.days * 24 * 3600
Convert a UTC datetime to a Unix timestamp
dataset/ETHPy150Open docker/docker-py/docker/utils/utils.py/datetime_to_timestamp