def utc_to_local(utc_dt):
    # get integer timestamp to avoid precision lost
    timestamp = calendar.timegm(utc_dt.timetuple())
    local_dt = datetime.fromtimestamp(timestamp)
    assert utc_dt.resolution >= timedelta(microseconds=1)
    return local_dt.replace(microsecond=utc_dt.microsecond)
Authorize a transaction against this card for the specified amount.
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/dates.py/utc_to_local--crossover with--dataset/ETHPy150Open drewisme/authorizesauce/authorize/client.py/AuthorizeCreditCard.auth