RE: DateTime Subtraction

2005-01-25 Thread Hill, Ronald
Hi Todd, Todd Goldenbaum wrote: > Hello, > > I'm trying to find the difference betwen two datetime > objects, but I'm > getting some unexpected results. I start with two dates out of mysql > (code simplified a bit for this example): > >my $start_date = DateTime::Format::MySQL->parse_date(

RE: DateTime Subtraction

2005-01-25 Thread Dave Rolsky
On Tue, 25 Jan 2005, Hill, Ronald wrote: However, after checking the docs for this function. I found this: The C and C methods truncate the duration so that any fractional portion of a day is ignored. The C method converts any day and month differences to minutes. Unlike the subtraction methods, B

Should we add this to the FAQ (was:DateTime Subtraction)

2005-01-25 Thread Hill, Ronald
Hi Dave, Dave Rolsky wrote: > On Tue, 25 Jan 2005, Hill, Ronald wrote: > > > Yeah, I noticed this too. It's a bug (the docs are right) and will be > fixed in the next release. > I checked the FAQ for this topic (delta_days)and did not find one. Do you think we should add this question to the F