Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Is there an official DST border day detection module?

by flowdy (Scribe)
on Oct 28, 2014 at 19:59 UTC ( [id://1105364]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Is there an official DST border day detection module?
in thread Is there an official DST border day detection module?

Hi RonW, I am already using Date::Calc heavily, as you can see in my code above containing calls to MkTime and Add_Delta_Days. :-)

By local <=> UTC time conversion, I am afraid the DST switch issues would just bite me somewhere else. Somewhere in the system I just have to deal with the regular plus and minus DST hours affecting the user's actual schedule after all. Because knowing how long it effectively takes between point a and point b of time, from the users perspective, DST is a condition the software must handle instead of evening it out by UTC conversion. This is the price for having his planned private off time explicitly excluded from time-related calculations.

  • Comment on Re^4: Is there an official DST border day detection module?

Replies are listed 'Best First'.
Re^5: Is there an official DST border day detection module?
by RonW (Parson) on Oct 29, 2014 at 18:48 UTC

    On a random thought, I tried searching for "calendar" on CPAN. Looks like you could define rules in Date::Calendar::Profiles to determine the start/end dates of DST.

Log In?
Username:
Password:

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

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

      No recent polls found