Dave Rolsky wrote:
> >   $set1 = DateTime::SpanSet->new( start_set
=> $dt_set, end_set => $dt_set ); 
> What would this create exactly?

This is the same thing, but with another syntax (I
prefer this one):

  $set_start = new DateTime::Set( $day1, $day3 );
  $set_end   = new DateTime::Set( $day2, $day4 );
  $spanset = $set_start->until( $set_end );

It creates this DateTime::SpanSet:
  [ $day1 .. $day2 ) , [ $day3 .. $day4 )
meaning:
  a time-span that
  starts in day1 and ends before day2, then
  restarts in day3 and ends before day4.

- set_start and set_end can be recurrences.

- Flavio S. Glock


Reply via email to