Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Date::Manip and daylight savings

by sparkyichi (Deacon)
on Nov 07, 2011 at 18:54 UTC ( #936557=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Date::Manip and daylight savings
in thread Date::Manip and daylight savings

So when I choose to use a module I first read the documentation and the first thing I read is “Time zone support is extremely limited, and is often broken.” Then I write my code and it doesn’t work. I tend to look for ways on how I can write my code to make it work. It is NOT “reinventing the wheel” when your wheel is broken.

If you did what the poster is asking then post your code (which I saw you did, nice example) or explain how you did it. It helps no one when you cry about people resorting to writing code when they couldn’t get a module to do what they wanted to.

Sparky
FMTEYEWTK


Comment on Re^3: Date::Manip and daylight savings
Re^4: Date::Manip and daylight savings
by SBECK (Pilgrim) on Nov 07, 2011 at 19:38 UTC

    If you'll read the full document, you'll see that the excerpt that you quote applies specifically to version 5 of Date::Manip (and it is true... timezone support WAS very limited and broken). The statement does not apply to version 6.

    I'm not sure where you get that I was 'crying about people resorting to writing code'. My response to your comment was not meant to be complaining or derogatory. I was simply saying that I don't believe that people should tackle the problem of daylight saving time as part of their coding project. It's so complicated (made especially so due to the fact that there are no rigid rules for saving time... they are assigned by arbitrary shifts in the views of people) that it's almost impossible to do quickly AND right. If you need daylight saving time support in your code, and you're not intensely interested in that particular problem... don't bother writing your own. Use one of the existing modules.

    A more complete reading of the Date::Manip documentation, or of the DateTime::Timezone module should reveal that both are equipped to deal with the problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-20 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls