On Thursday 17 June 2004 14:15, Rick Measham wrote:
> use DateTime::Format::Duration;
>
> (See the docs for more information. IIRC there's a format key in there for
> 'as days')

Thanks,

use warnings;
use strict;

use DateTime;
use DateTime::Format::Duration;

my $d = DateTime::Format::Duration->new(pattern => "\%d \%e \%j"); 
my $d1 = DateTime->now();
my $d2 = DateTime->now();
$d2->add(months=>2);
my $dur = $d2->subtract($d1);
print $d->format_duration($dur);'

The following parameter was passed in the call to DateTime::Duration::new
but was not listed in the validation options: utc_year
 at /usr/lib/perl5/site_perl/5.6.1/i386-linux/DateTime/Duration.pm line 22

Any ideas about that ?
Mismatch of DateTime, DateTime::Duration versions ?

quite strange because:

DateTime.pm  (Dave Rolsky and others) - a base datetime object representing
the Gregorian calendar. Also includes DateTime::Duration and 
DateTime::Infinite.

DateTime installed from CPAN yesterday ..

Reply via email to