DateTime Subtraction

2005-01-24 Thread Todd Goldenbaum
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( '2005-01-05' ); my $end_date = DateTime::Format

Re: DateTime Subtraction

2005-01-26 Thread Todd Goldenbaum
On Jan 25, 2005, at 8:57 AM, Hill, Ronald wrote: 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 $

Re: DateTime Subtraction

2005-01-27 Thread Todd Goldenbaum
Ron, that makes perfect sense. Thanks! Todd On Jan 27, 2005, at 7:06 AM, Hill, Ronald wrote: Hi Todd, Todd Goldenbaum wrote: I'm curious now though, what >is< $duration->days used for, if not for expressing the length in days of a $duration? From the Docs: These methods return numb