|
From: Luigi B. <lui...@gm...> - 2011-02-08 08:12:35
|
On Mon, 2011-02-07 at 17:16 -0500, Luca Billi wrote: > this code: > > Schedule schedule(Date(30, Sep, 2010), > Date(28, Feb, 2011), > 1*Months, > TARGET(), > Following, > Following, > DateGeneration::Backward, > true); > > generates these dates: > > 2010-09-30 > 2010-10-29 <----- Here I'd have expected 2010-11-01 instead > 2010-11-30 > 2010-12-31 > 2011-01-31 > 2011-02-28 > > When endOfMonth == true, Following doesn't apply but rather ModifiedFollowing. > Is this the intended behavior? End-of-month says that the schedule should generate dates on the last business day of the month, and as such overrides business-day convention. Luigi -- Poets have been mysteriously silent on the subject of cheese. -- Gilbert K. Chesterton |