time-of-day class