> The sub that generates recurrences can be responsible for truncation, right?
Yes, but it needs to know "which" truncation to do. I think we could use an interface
like this:
new( callback => sub { ..... }, freq => 'year' );
The callback would be called with a parameter like "2003-01-01" (because of
'freq=>year')
and
it would return a list of dates (or empty list, or a single date) within that year.
Note that it _is_ possible to have a start date without a truncation spec, but that's
harder to
optimize (there is no 'random access' to the recurrence).
- Flavio Soibelmann Glock