Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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.


Replies are listed 'Best First'.
Re^4: Date::Manip and daylight savings
by SBECK (Hermit) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://936557]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-04-24 16:58 GMT
Find Nodes?
    Voting Booth?