import calendar


def datetime_to_epoch(dt):
    """
    Convert UTC datetime object to EPOCH seconds

    :param datetime dt: A datetime object
    :return: EPOCH seconds as float
    """
    return calendar.timegm(dt.utctimetuple()) + dt.microsecond / 1000000.