import time


def ICSdateconv(date):
    """Convert the date format used in the ICS to standard UNIX time"""
    x = date.replace("/"," ").replace("-"," ").replace(":"," ").split()
    base = time.mktime((int(x[0]),1,0,0,0,0,0,0,0))
    return base + ((int(x[1]))*86400 + (float(x[2])) * 3600 + float(x[3])*60 + float (x[4]))