20 Sep
2006
20 Sep
'06
6:38 p.m.
Hi, I am looking at the possibility of replacing our custom-made datetime classes with the ones from boost::date_time. The library looks very attractive to me, and I would certainly go ahead and use it... however there is (at least) one catch, and this is the snap-to-end-of-month behavior of the months duration, according to which: {2000-Feb-29} + {1 month} = {2000-Mar-31} The problem is that it contradicts to the XSD spec we are using, http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#adding-durations-to-date..., that says that months must be just "pinned to be within range". Maybe there is (could be added) some sort of policy, that could be used to achieve this behavior? Thanks, Arkadiy