On Fri, Jan 23, 2009 at 12:11 PM, Casey Dougall wrote:
> This is basically a schedule application for DJ time slots, but I don't know
> the best way to organize this content and display to end user.

> Maybe I need to store this as a date time field instead of one column for
> day of week and separate column as time..
>
> Schedules are repeating every week. Like my hour is always Sundays 1-2pm est
> / 6-7UTC

Do you have database requirements /constraints yet? If not, do
yourself a favor and make sure you use a database that supports
timezones and intervals. Then you just store the starttime in a
timestamp column and the duration in an interval column and let the
database handle all the timezone conversions for you. For example:
SELECT
  name
  , startTime AT TIME ZONE EST
  , (startTime + duration) AT TIME ZONE EST

Recurrence is easily handled with interval support. Just store one
record in the database for each show with a boolean field to indicate
whether the show is recurring and another interval field to show the
repetition interval.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318387
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to