|
Boost Users : |
From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-09-20 14:38:22
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-dateTimes,
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net