Antano Solar wrote:
I was anyways wanting to do a rewrite of the module with also a bug fix that I encountered.
Take a look at the thread from back on Jan 22 entitled "Sets, Recurrences, Public Holidays .. Business Days trouble"
I'm basically solving the same case as you using sets and recurrences (and using iCal for subtracting public holidays)
As I'm just needing short runs of days, I'm just looping over the $business_days->iterator $days times and then using the final resulting $dt.
(NOTE for other DT devs: It would be good if, given a DateTime::Set (or DateTime::Set::ICal) you could get the $Nth day .. like the 10th day. rather than an iterator and call it $N times or turning the set into a list (which in this case is infinite))
Cheers! Rick Measham
smime.p7s
Description: S/MIME Cryptographic Signature
