On Mon, 1 May 2006, Jerrad Pierce wrote:
> Umm, scalar by definition counts the number of elements of a list.
I don't think so:
print scalar as_list(), "\n";
sub as_list {
return (99,100,101);
}
> >Probably something like subtract_datetime_absolute_in_days() would
> >be easier to grasp (referring to subtract_datetime_absolute() which does
> >something similar). Or maybe even something like
> Well, there's delta_days (just above your absolute thing).
Ah, we're getting closer:
use DateTime;
my $jf = DateTime->new(year => 2006,
month => 1,
day => 1);
my $ff = DateTime->today();
my $dur = $ff->delta_days($jf);
print $dur->in_units('days'), "\n";
Think I can live with that.
-- Mike
Mike Schilli
[EMAIL PROTECTED]