Bobby's dateadd function does the same thing as my function, but more concisely and better I think.
The politicians are talking about changing the daylight savings changes yet again. It comes up in the public debate every time there is a change either to or from summer time. Queensland, in the tropics, and therefore not really needing daylight savings doesnt change. Every time we change the clocks people here say 'Queensland is so conservaitve and ought to change with the rest of us", yet no one ever seems to notice that the closer you get to the equator, the less is the difference between June sunset and January sunset times. So whenever this comes up, there's debate about how backward Queenslanders are (they arent - they just dont need daylight savings), and then someone will say we ought to have daylight savings all around the year, and someone else will say we ought to change two months earlier, and round it all goes again. I do believe that Victoria will be changing at a different time next year because they have the Commonwealth Games on in Melbourne, but I"m not sure about that. The change to the dates here in 2000 were only in NSW, I think, although Victoria might have joined us, not sure. It's all very confused here and I just prefer to keep it under my own control. When the clocks change in the house here, I change my Application.cfc files and all my sites stay at the right time. Seamus, you need to use dateformat. e.g. #dateformat(application.austime, "d/mmm/yyyy")# Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 12/11/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > Try to Time/Dateformat() it and see if its what your looking for > > I'd still use this though... > > <cfset application.austime = dateadd('h', 17, now())> > > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > -----Original Message----- > From: Seamus Campbell [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 10, 2005 11:05 PM > To: CF-Talk > Subject: [Reply To] Re: FW: local date time minus 17 hours > > Thanks Mike > > I've tried that but I get a number ( eg 38698.3354861) > I'm using CFMX 7 > > Do you know why I'm getting this? > Exact code I'm using: > <cfset application.austime= #now()# + #createTimeSpan(0,17,0,0)#> > > <cfoutput>#application.austime#</cfoutput> > > Ta > Seamus > > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226750 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54