def round_down_minute(date_time, min_offset):
    """
    Round down to nearest minute that is at least minimum_offset seconds earlier
    """
    dt = date_time - min_offset
    dt.second = 0
    dt.microsecond = 0
    return dt
