On Thu, 30 Oct 2003, Autrijus Tang wrote:

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

I think this belongs in a separate module.  DateTime.pm is already big
enough, so I'd rather avoid bloating it with even more optional features
;)


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to