If that is what was decided, that's fine. However, it should be mentioned in the documentation. Thank you, Jonathan
________________________________ From: Rich Bowen [mailto:[email protected]] Sent: Friday, March 02, 2012 6:06 AM To: Peyser, Jonathan Cc: <[email protected]> Subject: Re: Error with the leap year On Mar 1, 2012, at 17:14, <[email protected]> wrote: If the date for $dt is 20120229, the following produces an error! $dt->set_year($dt1->year + 1); Invalid day of month (day = 29 - month = 2) at /sbcimp/run/pd/cpan/5.8.8-2006.03/lib/DateTime.pm line 170 DateTime::new('undef', 'hour', 0, 'second', 0, 'month', 2, 'locale', 'DateTime::Locale::en_US=HASH(0x8e15400)', ...) called at /sbcimp/run/pd/cpan/\ 5.8.8-2006.03/lib/DateTime.pm line 1507 DateTime::set('undef', 'year', 2013) called at /sbcimp/run/pd/cpan/5.8.8-2006.03/lib/DateTime.pm line 1514 Yeah. That was the subject of days of discussion as to what the right thing to do here was. Leap years are hard. This is what we decided was the right thing to do here. -- Rich Bowen, mobile edition
Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases.
