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 )

- Flavio S. Glock

Reply via email to