Boost logo

Boost :

From: Martin (adrianm_at_[hidden])
Date: 2004-09-27 08:12:20


I'm trying to understand the date_time formatting via iostreams but got
problems with a few things. I tried to search the archive but didn't find
answers to these questions.

1. Why doesn't date_time use the standard time facet (time_put.do_put etc) if
the special greg_date_facet isn't available?

2. Why do I need to specify the names of all months and weekdays in the
greg_date_facet just to use a different separator than '-' or another ordering?

3. How do I specify the format of a ptime (date-separator, time-separator and
decimal separator)?

--------------------------------------------
I also got some compile warnings on VC70 (latest CVS)

1: in the function "from_time_t" on this line
    return start + seconds(t);

  boost\date_time\posix_time\conversion.hpp(27) warning C4244: 'argument' :
conversion from 'time_t' to 'long', possible loss of data

2: in the function "from_stream_type"
     ss << ss.narrow(*beg++, 'X'); // 'X' will cause exception to be thrown

  boost\date_time\date_parsing.hpp(211): warning C4244: 'argument' :
conversion from 'wchar_t' to 'char', possible loss of data


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk