Hello,

I think if this feature should be available in boost Date_Time there will be no magic behind as well, so that the lib developer will store these flags for you... And probably not all users will like this idea.

IMO the easiest way (if you don't care about memory usage) is to deal with Date_Time range. From - To. If <from date> equals <to date> than this is the birthday, otherwise, you can specify a quarter, a year, a month, etc. by simply using the range.


With Kind Regards,
Ovanes

On 11/12/07, Christoph <christoph.duelli@gmx.de> wrote:
Is there special support in Boost.Date_Time to support quarters, or (just)
years?
Consider the following scenario: I have a customer (or patient) whose
(exact) date of birth is not known, only that 'he was born in 1960' or
in 'May 1960' (w/o attached information on month or days).

Is there another way to handle this (and preserve knowledge about the
incomplete information) besides pretending that month  (and perhaps even
day) is 1 and storing additional flags about the information being not
actually present?

Best regards
Christoph

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users