Boost C++ Libraries: Ticket #12699: posix_time\time_formatters removes trailing 0 fractional seconds https://svn.boost.org/trac10/ticket/12699 <p> When calling boost::posix_time::to_iso_extended_string(), the returned format will differ depending on the value of the fractional seconds. This cannot be configured. In time_formatters.hpp, function 'to_simple_string_type' checks if the value of the fractional seconds is 0 (zero). If it is, it will not print the corresponding fractional seconds digits. </p> <p> I consider this a bug because if one is to display multiple ptimes in this format they could have differing widths which would not be visually appealing. </p> <p> I propose that this is changed to be either: </p> <p> 1) User controlled. The user can set whether or not to print the characters. </p> <p> OR </p> <p> 2) It should always print the fractional seconds digits. </p> <p> I believe that option 1) is the correct solution, though at the very least I believe option 2) to be more correct than the current implementation. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12699 Trac 1.4.3