leocharre has asked for the wisdom of the Perl Monks concerning the following question:
I'm making a project to help manage a "schedule for events taking place occupying a finite resource".. For example if a client is managing hotel rooms and rentals.
They will need to enter via http, and reports must be generated to present online to anybody enquiring to hold an envent (rent a room, throw a party in a church.. etc)
Calendar::Schedule is fab, but how would I stop overlapping?
Solution 1..
I have a simple module to interact with a timeslots table in an open dbi handle.
In the timeslots section is recorded the id of the timeslot, the id of the event(who what, beyond scope here), the start time, and end time.
I've been thinking that I'd use unix time for defining a "time bloc", start and end.
With funny leap year etc situations.. will time xxxxxxxxxx always translate to a specific date?
Maybe managing a schedule via start and end times is not the most sensible approach, what about start time and duration?
Solution 2?
My other thought is interfacing with an application that already tracks a calendar schedule type of organization.. Like mozilla sunbird? What else could I look into interfacing to?
update:
Actually, I could use Calendar::Schedule simply to render, and I could enter in the data from a sql csv, etc table, and have time conflict managed on the side.
I would have to convert unix time or something else to register events with Calendar::Schedule
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (OT) designing a "per event, resource schedule" manager
by jdtoronto (Prior) on Aug 03, 2006 at 18:58 UTC | |
by leocharre (Priest) on Aug 04, 2006 at 14:02 UTC | |
by Asim (Hermit) on Aug 04, 2006 at 14:22 UTC | |
|
Re: (OT) designing a "per event, resource schedule" manager
by Asim (Hermit) on Aug 03, 2006 at 19:58 UTC |