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');


-dave

/*============================================================
http://VegGuide.org               http://blog.urth.org
Your guide to all that's veg      House Absolute(ly Pointless)
============================================================*/

Reply via email to