[Boost-bugs] [Boost C++ Libraries] #3487: using 32bit seconds type in boost::posix_time::time_duration is leading to year 2038 problem

Subject: [Boost-bugs] [Boost C++ Libraries] #3487: using 32bit seconds type in boost::posix_time::time_duration is leading to year 2038 problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-25 17:02:04


#3487: using 32bit seconds type in boost::posix_time::time_duration is leading to
year 2038 problem
-----------------------------------------------------+----------------------
 Reporter: Meike Schmidt <mschmidt.trittau@…> | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: date_time
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 In the template class time_resolution_traits the dafault seconds type is
 boost::int32_t. This type is also used in the posix_time::time_duration
 class.

 When using posix_time::from_time_t() the time_t value (normally a 64bit
 type on modern systems) is casted into an boost::int32_t value. So time_t
 values describing times after year 2038 will not processed correctly.

 Is it possible to use boost::int64_t as default seconds type?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3487>
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:01 UTC