I thought about that but I have heard that isn't to accurate either anyone know? which was a concern of mine since my host is 2 hours behind me
----- Original Message ----- From: "Andy Ousterhout" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 11:29 PM Subject: RE: simple tag aint working > You may want to use a java script to get the local time off of the PC. I > got the script below from Clint Tredway off of anotherlist and haven't > tested it yet. > > <SCRIPT> > // This script is designed to replace the "0" that you get using > // the getHours(). Nothing to it. > // richard lands http://www.taja.com/ > // If you use let drop me a line at [EMAIL PROTECTED] > // peace > function getTime() { > var mins = ((min < 10) ? ":0" : ":") + min > var secs = ((sec < 10) ? ":0" : ":") + sec > if ( hour < 12) { > var am = (hour == 0) ? "12" : hour > document.write(am + mins + secs +" a.m.") > } > if (hour > 12) { > var pm = hour - 12 > document.write(pm + mins + secs +" p.m.") > } > if (hour == 12) { > var noon = hour > document.write(noon + mins + secs +" p.m.") > } > } > </SCRIPT> > <SCRIPT> > <!-- > > time = new Date() > hour = time.getHours() > min = time.getMinutes() > sec = time.getSeconds() > > > getTime() > > // --> > </SCRIPT> > > -- > Clint Tredway > www.factorxsoftware.com > -- > > > -----Original Message----- > From: Matthew Walker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 10:19 PM > To: CF-Talk > Subject: RE: simple tag aint working > > > Well, the closing comment needs an extra "-" at the end. BTW you could > write it slightly more briefly: > > <!--- welcome time of day greeting ---> > <cfif Hour(Now()) LT 12> > Good morning early bird > <cfelseif Hour(Now()) LT 17> > Good Afternoon > <cfelse> > Good Evening > </cfif> > <!--- end time of day greeting ---> > > > -----Original Message----- > > From: Dave Lyons [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, 23 January 2003 5:07 p.m. > > To: CF-Talk > > Subject: simple tag aint working > > > > > > finally getting around to playing with cf > > i am trying to make a simple time of day greeting > > but i am getting an error for a closing </cfif> tag but I > > cant put it where it says to and when i do It still errors > > I'll get you a password tony if you show me the light, lol > > > > <!--- welcome time of day greeting ---> > > <cfif Hour(Now()) LT 12> > > Good morning early bird > > <cfelseif Hour(Now()) GTE 12 AND LT 17> > > Good Afternoon > > <cfelseif Hour(Now()) GTE 17 AND LTE 24> > > Good Evening > > </cfif> > > <!--- end time of day greeting --> > > > > > > Dave Lyons > > [EMAIL PROTECTED] > > www.DreamLofts.com > > www.DreamLofts-WebDesigns.com > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4