> Why does the DateTime::Set class need to get both dates back? I think that's what is confusing me.
Another option: the callback receives a start date and an end date parameters, and it returns the list of the dates that are in that time span. This looks much simpler, and it solves the problem. - Flavio S. Glock
