On Tue, 29 Jul 2003, Dan Sully wrote:

> * Dave Rolsky <[EMAIL PROTECTED]> shaped the electrons to say...
>
> >  my $dt1 = DateTime->new( month => $month, year => 2002 );
> >
> >  my $dt2 = $dt1->clone->add( months => 1 )->subtract( seconds => 1 );
> >
> > There are several variations on the above that'd work.
>
> Which yet again yields: 2003-01-01 00:00:-01
>
> Sorry for not reading the archives. I have no problem using something else
> (this is new code anyways, and it seemed intuitive to me, if a bit wierd.)
>
> All I'm looking for now is something that works.

Well, obviously this is a bug in the DateTime code, as that's not what
_anyone_ would expect as a result, right?


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to