I have a database table storing opening hours of a restaurant as a time range in TIME format. Eg if the restaurant’s opening hours are ‘9am-5pm’, there will be 2 columns ‘hours_open’ and ‘hours_close’ where I store 9:00 in ‘hours_open’ and 17:00 in ‘hours_close’. What I need to do is to display the range of hours eg: 9:30am 10:00am 10:30am 11:00am 11:30am until 5:00pm
can anyone point me in the right direction?
1 Answer