Re: available times?
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52833
interpreted = N
texte = Can't you do a range search on the requested times, and if there is ans_time or an e_time within that range, then the requested time isdisallowed.Tim> From: "WebDna @"
> Reply-To: (WebDNA Talk)> Date: Fri, 12 Sep 2003 16:20:05 -0700> To: (WebDNA Talk)> Subject: available times?> > Ok everyone I am in need of assistance. I have a meeting scheduler that> needs to compare submited times to see if they are available.> > Time is submit as:> > s_hour - requested start hour> s_minutes - requested start minute> e_hour - requested end hour> e_minutes - requested end minute> > For comparison sake we use military time so hours are 01-23> > We have two fields in the DB for the entered meetings:> > s_time - start time> e_time - end time> > we put the times together when submitted:> > [s_hour][s_minute] = 0705 (minutes are in 5 minute intervals)> > so what we need is this:> > Scheduled meetings> S_TIME - E_TIME> 0700 - 0800> 1200 - 1300> > Requested times> 0730 - 0830 - fail> 1230 - 1330 - fail> 0530 - 1400 - fail - the hard one> 0900 - 1100 - pass> > 1 - 3 should fail, but 4 should be accepted. So how do I compare this data?> > Thanks,> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Can't you do a range search on the requested times, and if there is ans_time or an e_time within that range, then the requested time isdisallowed.Tim> From: "WebDna @" > Reply-To: (WebDNA Talk)> Date: Fri, 12 Sep 2003 16:20:05 -0700> To: (WebDNA Talk)> Subject: available times?> > Ok everyone I am in need of assistance. I have a meeting scheduler that> needs to compare submited times to see if they are available.> > Time is submit as:> > s_hour - requested start hour> s_minutes - requested start minute> e_hour - requested end hour> e_minutes - requested end minute> > For comparison sake we use military time so hours are 01-23> > We have two fields in the DB for the entered meetings:> > s_time - start time> e_time - end time> > we put the times together when submitted:> > [s_hour][s_minute] = 0705 (minutes are in 5 minute intervals)> > so what we need is this:> > Scheduled meetings> S_TIME - E_TIME> 0700 - 0800> 1200 - 1300> > Requested times> 0730 - 0830 - fail> 1230 - 1330 - fail> 0530 - 1400 - fail - the hard one> 0900 - 1100 - pass> > 1 - 3 should fail, but 4 should be accepted. So how do I compare this data?> > Thanks,> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Tim Robinson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] WebDNA Newbie Questions (2008)
Mac OS X ODBC (2002)
multi-paragraph fields (1997)
Multiple 'Users.db' files not possible (1997)
Protecting Images (2003)
ShowNext for method=POST (1997)
Secure Sever and showcart errors (1997)
Running _every_ page through WebCat ? (1997)
[WebDNA] CICADA (2009)
RE: [WebDNA] Basic Search (2008)
ExclusiveLock (2000)
webcat 2.1 new cart fields - please explain more (1998)
Text data with spaces in them... (1997)
[ShowIf] if the varieable exists (1998)
Sorting (1998)
WebDNA and SQL (2003)
Setting up the server (1997)
WebCat2.0b15-to many nested [xx] tags (1997)
email list archive template (2004)
remove.htm from result (2005)