
8 Dec
2006
8 Dec
'06
5:45 p.m.
Martin Adrian wrote:
More date_time facet comments:
It is not possible to set the date duration format. Date durations are streamed using the number format.
This means that I can't set it to the XML schema standard for durations [-]PnnD (e.g -P120D for -120 days)
Sadly this is true. To do it, we need a new format specifier, a new method in the date_facet, etc. I'm thinking maybe %dd for the specifier? And then you'd want a method to set the format like this: date_facet* df = new date_facet(); df->date_duration_format("%-P%ddD"); where the %- controls the sign output. Of course it could default to something like this. Thoughts? Jeff