I propose 
 
DateTime::Set->new( recurrence => $string 
); 
 
where $string is any of the parameters 
accepted by both DateTime::truncate() and 
DateTime::add(), such as 'day', 'year'. 
 
If somebody really wants other recurrences, 
they could create their own 
DateTime-derived class and override 
truncate and add. 
 
I think this approach is cleaner and more 
'OO' than using callbacks. 
 
- Flavio S. Glock 
 

Reply via email to