Add a class ends by midnight.