Boost C++ Libraries: Ticket #833: Boost::posixtime (1.33.1) from_time_t https://svn.boost.org/trac10/ticket/833 <pre class="wiki">Code: time_t value2 = 0x80000001;//FFFFFFF; CTime ct_time((UINT)value2);//ATL. ptime m_time=from_time_t((UINT)value2); cout&lt;&lt;"Boost time: "&lt;&lt;m_time&lt;&lt;endl; cout&lt;&lt;"Real time: "&lt;&lt;ct_time.Format("%Y %m %d %H:%M:%S")&lt;&lt;endl; COUT: Boost time: 1901-Dec-13 20:45:53 Real time: 2038 01 19 06:14:09 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/833 Trac 1.4.3 cepstein Thu, 15 Feb 2007 16:54:44 GMT status changed https://svn.boost.org/trac10/ticket/833#comment:1 https://svn.boost.org/trac10/ticket/833#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=36183 Originator: NO Given that the bug report mentions CTime, this must be on Windows. You've exceeded the maximum allowable value for time_t on this platform. See, for example, http://www.2038bug.com/ </pre> Ticket gamial Thu, 15 Feb 2007 22:39:14 GMT <link>https://svn.boost.org/trac10/ticket/833#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/833#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=1720265 Originator: YES Yes, ofcouse. 2038 y - is limit. BUT! It mast be "not valid date". Becouse time_t is time FROM 1970. NOT before. </pre> </description> <category>Ticket</category> </item> </channel> </rss>