Joshua Hoblitt wrote: > > > $span = $dti->span; > > I really like the idea of being able to measure > the uncertainty in an object. What if the year > and day are known but not the month? Would a > span set be returned?
"spanset" would be a separate method. Here is an example: With 'year' - $dti = DateTime::Incomplete->new( year=>2003, day=>7 ); start: DateTime = 2003-01-07T00:00:00 end: DateTime = 2003-12-08T00:00:00 span: DateTime::Span = [ 2003-01-07T00:00:00 , 2003-12-08T00:00:00 ) spanset: DateTime::SpanSet = [ 2003-01-07T00:00:00 , 2003-01-08T00:00:00 ) [ 2003-02-07T00:00:00 , 2003-02-08T00:00:00 ) [ 2003-03-07T00:00:00 , 2003-03-08T00:00:00 ) ... [ 2003-12-07T00:00:00 , 2003-12-08T00:00:00 ) recurrence: DateTime::Set = 2003-01-07T00:00:00 , 2003-01-07T00:00:01 , 2003-01-07T00:00:02 , ... 2003-01-07T23:59:59 , 2003-02-07T00:00:00 , ... 2003-12-07T23:59:59 Without 'year' - $dti = DateTime::Incomplete->new( day=>7 ); start: undef end: undef span: undef spanset: DateTime::SpanSet = ... [ 2003-01-07T00:00:00 , 2003-01-08T00:00:00 ) [ 2003-02-07T00:00:00 , 2003-02-08T00:00:00 ) [ 2003-03-07T00:00:00 , 2003-03-08T00:00:00 ) ... recurrence: DateTime::Set = ... 2003-01-07T00:00:00 , 2003-01-07T00:00:01 , 2003-01-07T00:00:02 , ... 2003-01-07T23:59:59 , 2003-02-07T00:00:00 , ... - Flavio S. Glock
