Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Ok, I've read the two threads in this forum on this subject (170223 and 39564), and I don't think they've answered (at least clearly enough for my lowly understanding) if it's possible to tell when daylight savings time is occurring in some given time zone.

Here's the problem. I, sadly, live in Indiana, where we do not observe daylight savings time. To do a reconciliation process, we must match records with Verisign in California, where they do recognize daylight savings. So, I need my programs to know when California has shifted and appropriately alter the time depending on the time of year so that our daily reports' time range matches midnight to midnight in California. Make sense? And so, by extension, my problem isn't doing the shift (that's trivial), but figuring out WHEN I need to make the hour shift.

Is there a programmatic way to know when daylight savings is currently being observed? If so, can you please give me a hint to understand how to go about it? Is there a Perl module I've overlooked that can tell this kind of information? Looking at the Net:ICal:Daylight module doesn't really help, but if someone knows that will solve the problem, I'll invest a much greater amount of time into understanding the bunch of OO-like modules involved.

TIA, as always, for your experience.

20030208 Edit by Corion : Changed node ids to links


In reply to Daylight Savings Time twist by kanwisch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found