How do I detect day lights savings?

2006-05-11 Thread Aaron Roberson
Okay, so there is a fucntion (isLeapYear) that checks if the current year is a leap year, which makes me think that there should be some way of detecting if the current time is daylights savings. Any ideas on how to do this? Thanks in advance, Aaron

RE: How do I detect day lights savings?

2006-05-11 Thread Everett, Al \(NIH/NIGMS\) [C]
country, some of which have DST, many do not. What is it that you are trying to accomplish? -Original Message- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 11:52 AM To: CF-Talk Subject: How do I detect day lights savings? Okay, so there is a fucntion

RE: How do I detect day lights savings?

2006-05-11 Thread Katz, Dov B \(IT\)
=tz.inDaylightTime(dt); This will ask the timezone if the given date is in Daylight savings Dov -Original Message- From: Everett, Al (NIH/NIGMS) [C] [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 11:58 AM To: CF-Talk Subject: RE: How do I detect day lights savings? The calendar

Re: How do I detect day lights savings?

2006-05-11 Thread Paul Hastings
Aaron Roberson wrote: Okay, so there is a fucntion (isLeapYear) that checks if the current year is a leap year, which makes me think that there should be some way of detecting if the current time is daylights savings. isaac dealy i were working on that functionality for the TimeZone CFC but

RE: How do I detect day lights savings?

2006-05-11 Thread Dawson, Michael
CF's getTimeZoneInfo() function. M!ke ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240227 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription:

RE: How do I detect day lights savings?

2006-05-11 Thread Everett, Al \(NIH/NIGMS\) [C]
: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 11:52 AM To: CF-Talk Subject: How do I detect day lights savings? Okay, so there is a fucntion (isLeapYear) that checks if the current year is a leap year, which makes me think that there should be some way of detecting

Re: How do I detect day lights savings?

2006-05-11 Thread Aaron Roberson
I have a banner that displays on the site every Wednesday at 2:00 p.m.. However, I am afraid that when daylight savings time ends in October I am going to have to rewrite my code. It's a matter of chaning the value of a single variable, but what happens when I move on and another developer

Re: How do I detect day lights savings?

2006-05-11 Thread Aaron Roberson
CF's getTimeZoneInfo() function. It looks like getTimeZoneInfo().isDSTOn is what I was looking for but now another complexity arises. The getTimeZoneInfo function gets local time zone information for the computer on which it is called, relative to Universal Time Coordinated (UTC). That means

Re: How do I detect day lights savings?

2006-05-11 Thread Aaron Roberson
If I set the locale to English (US) will that change the results structure of the getTimeZoneInfo() to US time zone? On 5/11/06, Aaron Roberson [EMAIL PROTECTED] wrote: CF's getTimeZoneInfo() function. It looks like getTimeZoneInfo().isDSTOn is what I was looking for but now another

Re: How do I detect day lights savings?

2006-05-11 Thread Paul Hastings
Aaron Roberson wrote: I have a banner that displays on the site every Wednesday at 2:00 p.m.. However, I am afraid that when daylight savings time ends in October I am going to have to rewrite my code. It's a matter of chaning the value of a single variable, but what happens when I move on

RE: How do I detect day lights savings?

2006-05-11 Thread Dawson, Michael
- From: Aaron Roberson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 11:43 AM To: CF-Talk Subject: Re: How do I detect day lights savings? If I set the locale to English (US) will that change the results structure of the getTimeZoneInfo() to US time zone? On 5/11/06, Aaron Roberson [EMAIL

Re: How do I detect day lights savings?

2006-05-11 Thread Aaron Roberson
I just downloaded and am picking it apart - thanks! On 5/11/06, Paul Hastings [EMAIL PROTECTED] wrote: Aaron Roberson wrote: I have a banner that displays on the site every Wednesday at 2:00 p.m.. However, I am afraid that when daylight savings time ends in October I am going to have to

Re: How do I detect day lights savings?

2006-05-11 Thread Tony
here is what i came up with. may have been an adaption of someone elses something, but its what i use cfcomponent displayName=isDateInDayLightSavingsTime hint=The hint is in the question I say! cffunction name=isDateDST access=public output=1 returntype=any

Re: How do I detect day lights savings?

2006-05-11 Thread Paul Hastings
Tony wrote: cfset startDate = 04/01/#dateFormat(arguments.dateFeed,'')# cfset endDate = 11/01/#dateFormat(arguments.dateFeed,'')# won't work in oz, etc. what happens when congress changes DST again?

Re: How do I detect day lights savings?

2006-05-11 Thread Tony
it works here in america, where the application i use it for will ALWAYS reside :) and yeah, congress... ill change it when it comes to that. so no, its not i18n friendly, but i bet you could help me get it there! tw On 5/11/06, Paul Hastings [EMAIL PROTECTED] wrote: Tony wrote:

Re: How do I detect day lights savings?

2006-05-11 Thread Paul Hastings
Tony wrote: it works here in america, where the application i use it for will ALWAYS reside :) in the i18n world you just violated a big honking taboo, never say never. now you're screwed. probably have to make it i18n first thing tomorrow ;-) and yeah, congress... ill change it when it

Re: How do I detect day lights savings?

2006-05-11 Thread Tony
:) never is so fun to say tho' tw On 5/11/06, Paul Hastings [EMAIL PROTECTED] wrote: Tony wrote: it works here in america, where the application i use it for will ALWAYS reside :) in the i18n world you just violated a big honking taboo, never say never. now you're screwed. probably have

Re: How do I detect day lights savings?

2006-05-11 Thread Jim McAtee
: Tony [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, May 11, 2006 1:03 PM Subject: Re: How do I detect day lights savings? :) never is so fun to say tho' tw On 5/11/06, Paul Hastings [EMAIL PROTECTED] wrote: Tony wrote: it works here in america, where the application i