Opened 7 years ago
#11846 new Bugs
to_iso[_extended]_string documentation
Reported by: | anonymous | Owned by: | az_sw_dude |
---|---|---|---|
Milestone: | To Be Determined | Component: | date_time |
Version: | Boost 1.56.0 | Severity: | Cosmetic |
Keywords: | documentation | Cc: |
Description
Hi,
documentation (I use 1.56.0 but it's also in latest) says that output format of to_iso_extended_string(ptime)
(and it also applies to to_iso_string(ptime)
) is YYYY-MM-DDTHH:MM:SS,fffffffff
(and YYYYMMDDTHHMMSS,fffffffff
). But my output is for example
namespace pt = boost::posix_time; std::cout << pt::to_iso_extended_string(pt::time_from_string("2002-01-31 10:00:01.123456")) << std::endl; // output: 2002-01-31T10:00:01.123456 std::cout << pt::to_iso_string(pt::time_from_string("2002-01-31 10:00:01.123456")) << std::endl; // output: 20020131T100001.123456
Is it bug in documentation or did I miss something?
Note:
See TracTickets
for help on using tickets.