On Fri, 21 Mar 2003, fglock wrote:

> Dave Rolsky wrote:
> > I think the API needs to be simple and encourage simplicity in its use,
> > because this is a complicated area.
>
> Ok. This one is rather simple:
>
>   $dt_spanset = $dt_set->to_SpanSet( duration => $dt_one_month );
>
> Converts this DT::Set
>   2002-01-01 ,
>   2003-01-01
> to this DT::SpanSet
>   [ 2002-01-01 , 2002-02-01 ) ,
>   [ 2003-01-01 , 2003-02-01 )

I like this.


-dave

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

Reply via email to