in reply to Re: smart human readable time epoch
in thread smart human readable time epoch

I tried that one but i get:
perl -e 'use DateTime; use DateTime::Format::Human::Duration; my $span + = DateTime::Format::Human::Duration->new(); print $span->format_dura +tion(234234234);' Can't call method "in_units" without a package or object reference at +/usr/local/lib/perl5/site_perl/5.12.3/DateTime/Format/Human/Duration. +pm line 27.
Not sure if it's cruft or missing something. That's with perl v5.12.3.

Replies are listed 'Best First'.
Re^3: smart human readable time epoch
by ikegami (Patriarch) on Jun 15, 2011 at 10:15 UTC
    What you're missing is the proper usage of the function. It is documented to take a DateTime::Duration object.
Re^3: smart human readable time epoch
by Anonymous Monk on Jun 15, 2011 at 10:12 UTC