from datetime import datetime


def cp_date_to_unixtimestamp(cp_date):
    """ Convert Crashplan date to unix timestamp """
    dt = datetime.strptime(cp_date, "%m/%d/%y %I:%M%p")
    #ep = dt.fromtimestamp(0)
    #diff = dt - ep
    #return int(diff.total_seconds())
    return int(datetime.strftime(dt, "%s"))