RE: Error with the leap year

[email protected] (Dave Rolsky)
Newsgroups perl.datetime
Message-ID <[email protected]>
On Fri, 2 Mar 2012, [email protected] wrote:

> If that is what was decided, that's fine. However, it should be mentioned in the documentation.

A doc patch would be welcome.

However, I will point out that what you were doing is weird. If you want 
to do DateTime math, you need to use ->add and ->subtract (although these 
can _also_ come up with invalid datetimes in the face of DST changes). The 
DST issue is documented pretty clearly in the "How Datetime Math Works" 
section of the docs.


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.