def date2epoch(dt):
    """
    Convert list of datetime objects to epoch time

    Parameters
    ----------
    dt : datetime.datetime
        Single or list of datetime object(s)

    Returns
    -------
    time : float
        Datetime converted to epoch time (seconds since 1/1/1970 00:00:00)

    """
    if not isinstance(dt, list):
        dt = [dt]

    return [t.timestamp() for t in dt]