Do you need to do more than just store and display it?
I think that the design, which should determine whether the store is open at a certain time, should be informed by all the possibilities, otherwise you will not be able to come up with something.
What about holiday exceptions?
I would consider storing them as intervals based on base time (minutes from time 0 per week).
So, 0 is midnight on Monday.
Interval 1 will be 0 - 1440
Interval 2 will be 1890 - 2310
and etc.
You can easily convert a user-selected time into a minute offset and determine if the store is open.
The only remaining problem will be the interpretation on the display for a friendly display (perhaps some kind of extensive logic, but not impossible) and overlap during 10080 → 0.
source share