Here’s an intersting one:
I have a client who wants to store hours of operation of a business for
their RoR web app. I came up with a solution, but I really don’t like
I have a MySQL table that has these fields
monday_start, monday_end, tuesday_start, tuesday_end, etc., all as time
That’s all find and dandy. The kicker is, the client wants the hours to
If the start and end are the same all week:
Monday - Friday 6:00 AM - 10:00 PM
If the hours are different for one day only:
Monday 6:00 AM - 10:00 PM
Tuesday 7:00 AM - 10:00 PM
Wednesday - Sunday 6:00 AM - 10:00 PM
And so on. I’m really at a loss as to the best way to do the display.
If anyone can think of an elegant solution, I’d really appreciate it.
Thanks in Advance.