Hi people.  I would like to implement a DateTime::Functions module,
similar to File::Spec::Functions, that exports now(), today() an
d other class methods by default:

    use DateTime::Functions;
    print now->year;

However, does it more properly belong to DateTime.pm itself, via eg.
an explicit import?

    use DateTime ':functions';
    print now->year;

Sorry if this has already been covered before. :-)

(I'm not subscribed, so please Cc me in replies.)

Thanks,
/Autrijus/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to