boost::gregorian::months : access value / serialize
Hallo, I've to serialize the value of months into a databse. This requires to access the value (amount of months) stored inside of boost::gregorian::months. How can I access the internal value (nothing found in the docu)? If this is not possible which boost::date_time type should I in order to store a datetime duration consisting of the pair years and months (Oracle database type INTERVAL YEAR TO MONTH)? Regards, Oliver
On Thu, 12 Jan 2006 09:16:56 +0100, Oliver.Kowalke wrote
Hallo, I've to serialize the value of months into a databse. This requires to access the value (amount of months) stored inside of boost::gregorian::months. How can I access the internal value (nothing found in the docu)? If this is not possible which boost::date_time type should I in order to store a datetime duration consisting of the pair years and months (Oracle database type INTERVAL YEAR TO MONTH)?
There is a method number_of_months() you can use to get the value. I see that it's not so obvious from the docs that this exists :-( Jeff
participants (2)
-
Jeff Garland
-
Oliver.Kowalke@infineon.com