How to get interval time of day for a query For example I have times of lessons 09:00 AM 12:00 AM 16:00 AM and want to get only times between 9-12