Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Daylight Savings Time twist

by atcroft (Abbot)
on Feb 06, 2003 at 20:51 UTC ( [id://233271]=note: print w/replies, xml ) Need Help??


in reply to Daylight Savings Time twist

Just a thought, but could you not convert the date/time information for both locations to GMT then convert back to the other? Since GMT is not influenced by daylight savings time, and the timezone information you are using for both locales would likely handle the local influence of GMT, it might be a way to resolve the issue.

Just a thought, though-perhaps someone else can develop the thought, or suggest a better alternative.

Update: After reading your response, I thought about the use of Date::Manip, but noted that it mentioned concerns in dealing with daylight and standard time conversions. However, you can find when the time changes, according to the details located at http://webexhibits.org/daylightsaving/b.html. According to it, daylight savings time begins on the first Sunday of April, and ends on the last Sunday of October. Hope this information might help out.

Replies are listed 'Best First'.
Re: Re: Daylight Savings Time twist
by kanwisch (Sexton) on Feb 06, 2003 at 21:00 UTC
    Interesting, but how can I convert the "destination" (CA in this case) time to GMT if I don't know whether it's using Daylight savings at that time or not?

    For example, if I localized the $ENV(TZ)="PST" or "PDT", how do I know which one to set it to?
Re: Re: Daylight Savings Time twist
by kanwisch (Sexton) on Feb 07, 2003 at 13:15 UTC
    Wow, all excellent suggestions. We'll head, I think, into the module first to give a little support to the new extension and certainly provide the writer/team feedback. Failing that, though, I greatly appreciate all the other comments; there are several possibilities I didn't even knew existed!

    Vive le Perlmonks!

    kanwisch

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://233271]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found