Boost C++ Libraries: Ticket #12609: time_duration::total_seconds doesn't return long for LP64 model https://svn.boost.org/trac10/ticket/12609 <p> The documentation says that <strong>time_duration::total_seconds()</strong> returns <strong>long</strong> (<a href="http://www.boost.org/doc/libs/1_62_0/doc/html/date_time/posix_time.html">http://www.boost.org/doc/libs/1_62_0/doc/html/date_time/posix_time.html</a>). </p> <p> But for LP64 models (e.g. Linux, 64bit) it returns signed 32bit integer, not <strong>long</strong> (signed 64bit integer). </p> <p> It looks like <strong>time_resolution_traits::v_type</strong> (boost/date_time/time_resolution_traits.hpp) should be changed. At the moment it uses <strong>int32_t</strong> which is not correct for LP64 model because the documentation says it must be <strong>long</strong>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12609 Trac 1.4.3 James E. King, III Tue, 26 Dec 2017 15:46:00 GMT owner, status changed https://svn.boost.org/trac10/ticket/12609#comment:1 https://svn.boost.org/trac10/ticket/12609#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">James E. King, III</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> This was resolved in 1.66.0 by <a class="ext-link" href="https://github.com/boostorg/date_time/pull/35"><span class="icon">​</span>https://github.com/boostorg/date_time/pull/35</a> thus changing the value to std::time_t, therefore all of those methods will return std::time_t. The documentation was not updated, however, so I will levae this open for that purpose. </p> Ticket James E. King, III Tue, 26 Dec 2017 15:59:28 GMT <link>https://svn.boost.org/trac10/ticket/12609#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12609#comment:2</guid> <description> <p> The documentation issue is resolved with <a class="ext-link" href="https://github.com/boostorg/date_time/pull/58"><span class="icon">​</span>https://github.com/boostorg/date_time/pull/58</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Tue, 26 Dec 2017 15:59:46 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/12609#comment:3 https://svn.boost.org/trac10/ticket/12609#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.66.0</span> </li> </ul> Ticket James E. King, III Thu, 18 Jan 2018 13:49:49 GMT milestone changed https://svn.boost.org/trac10/ticket/12609#comment:4 https://svn.boost.org/trac10/ticket/12609#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.66.0</span> → <span class="trac-field-new">Boost 1.67.0</span> </li> </ul> <p> Given the serialization issues in 1.66.0 due to the std::time_t fix (in 1.67.0 it was changed to uint64_t to be uniform across all environments), I'm changing the milestone to 1.67.0 here. </p> Ticket James E. King, III Sun, 28 Jan 2018 16:25:23 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12609#comment:5 https://svn.boost.org/trac10/ticket/12609#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fix merged to master; resolved. </p> Ticket