[Boost-bugs] [Boost C++ Libraries] #11846: to_iso[_extended]_string documentation

Subject: [Boost-bugs] [Boost C++ Libraries] #11846: to_iso[_extended]_string documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-15 16:29:18


#11846: to_iso[_extended]_string documentation
------------------------------+------------------------
 Reporter: anonymous | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.56.0 | Severity: Cosmetic
 Keywords: documentation |
------------------------------+------------------------
 Hi,

 documentation (I use
 [http://www.boost.org/doc/libs/1_56_0/doc/html/date_time/posix_time.html#ptime_to_string
 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?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11846>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC