On Thu, Sep 2, 2010 at 7:01 PM, Dave Rolsky <auta...@urth.org> wrote:
> On Thu, 2 Sep 2010, Gabor Szabo wrote:
>
>> $d1 = DateTime->new(...);
>> $d2 = DateTime->new(...);
>>
>> my $sec = $d2->subtract_datetime_absolute($d1)->seconds;
>> print $sec/60/60/24, "\n";
>
>  my $dur = $d1->delta_days($d2);
>  print $dur->in_units('days');

thanks
  Gabor

Reply via email to