Hiya. Do you have suggestions for storing and presenting opening hours in Drupal 7? This is quite a mundane and universal problem, so i'm absolutely sure this has been solved in many ways. There is the Opening Hours -module, which isn't available for D7 at this time though. The Danish ting.DING uses Office Hours, and present this information very well (see the Aarhus libraries f.ex.) in a list, on a map and for individual libraries.
Basically this information is HH:mm -type data, two for each day. One idea is to make a calendar event for every single day the library is open, from opening until closing time. That would generate a mad amount of events, but would be nice for special days.
mon | 09:00 | 20:00 |
tue | 09:00 | 20:00 |
wed | 09:00 | 20:00 |
thu | 09:00 | 20:00 |
fri | 09:00 | 20:00 |
sat | 12:00 | 18:00 |
sun | 12:00 | 18:00 |
Because i want to use this data for Views (f.ex. to show libraries that are open at a user specified time or still open for at least one hour from now), i would like to make some nice data model for this, and not just list the times in a text field in human readable form.
Create 14 fields? Create 7 fields? Create n+1 events? Wait for Office Hours to be ported to D7? Many options... Any pointers anyone? I'll could start a wikipage about this.
Cheers.