Re: [Boost-bugs] [Boost C++ Libraries] #7525: Wrong clock_string<system_clock>::since() on Windows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7525: Wrong clock_string<system_clock>::since() on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-22 21:19:02


#7525: Wrong clock_string<system_clock>::since() on Windows
-------------------------------+--------------------------------------------
  Reporter: oliora@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.51.0 | Severity: Cosmetic
Resolution: | Keywords: chrono system_clock windows
-------------------------------+--------------------------------------------

Comment (by oliora@…):

 I think this is not an option because user will be confused why value of
 time_since_epoch() is different from printed value. Let's keep printed
 data the same as stored. I don't see the real problem in epoch difference
 between Window and Linux. Standard tells nothing about epoch concrete
 value or its exchangeability. And user always can convert time_point to
 time_t or user's own format to send data outside.
 But if you still want to make epoch the same on Windows and Linux, add
 conversion to now() function (to have time_since_epoch() the same on both
 platforms) but not to operator << and >>.
 Thank you

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7525#comment:3>
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:10 UTC