On Mon, 31 Mar 2003, Flavio S. Glock wrote:

> In module: DateTime
> New method: extend()
>
> Returns a DateTime::Span after the current date.
> If the parameter is a date, returns the span between the two dates.
> If the parameter is a duration, returns the span between the current
> date and "date+duration".
>
>   $dt_span = $dt_start->extend( until => $dt_end );
>
>   $dt_span = $dt_start->extend( duration => $dt_duration );
>
>   $dt_span = $dt_start->extend( hours => 24 );
>
> Other names:
>
>   span()
>   to_span()
>
> Implementation:
>
>   calls DateTime::Span->new()
>
>   "auto-uses" DateTime::Span

I agree with Eugene.  This belongs in DateTime::Span, because it's a span
constructor.

Also, I'm pretty against most "auto-use" type stuff, because it's not very
memory friendly under mod_perl, and I do a lot of mod_perl work.


-dave

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

Reply via email to