def _to_epoch_time(date):
    epoch = datetime.fromtimestamp(0)
    delta = date - epoch
    return int(delta.total_seconds())
Convert a `datetime` object to an integer number of seconds since
dataset/ETHPy150Open beetbox/beets/beets/dbcore/query.py/_to_epoch_time