--- microsec_time_clock.hpp 2008-02-27 14:00:24.000000000 -0600 +++ microsec_time_clock.hpp.new 2009-05-28 14:40:56.645305200 -0500 @@ -1,7 +1,7 @@ #ifndef DATE_TIME_HIGHRES_TIME_CLOCK_HPP___ #define DATE_TIME_HIGHRES_TIME_CLOCK_HPP___ -/* Copyright (c) 2002,2003,2005 CrystalClear Software, Inc. +/* Copyright (c) 2002,2003,2005,2009 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) @@ -66,7 +66,7 @@ private: // we want this enum available for both platforms yet still private enum TZ_FOR_CREATE { LOCAL, GMT }; - + public: #ifdef BOOST_HAS_GETTIMEOFDAY @@ -129,7 +129,7 @@ #endif return create_time(ft, LOCAL); } - + //! Return the UTC time based on computer settings static time_type universal_time() { FILETIME ft; @@ -165,8 +165,8 @@ // microseconds -- static casts supress warnings boost::uint32_t sub_sec = static_cast((filetime % 10000000) / 10); - std::time_t t = static_cast(filetime / 10000000); // seconds since epoch - + std::time_t t = static_cast(filetime / 10000000); // seconds since epoch + std::tm curr, *curr_ptr = 0; if (tz == LOCAL) { curr_ptr = c_time::localtime(&t, &curr);