date_time
date_time copied to clipboard
Boost.org date_time module
There is a problem std::basic_string to_simple_string_type(time_duration td) if application doesn't use the locale("C"). If you use spanish locale the result of this function is like this one: 2020-11-03T09:26:04.966.395 where the...
Hello, (boost version: 1.68.0) While using the boost::posix_time::time_input_facet to read a custom format string, the read completes with a totally invalid string: E.g.: ```cpp boost::posix_time::ptime fromISO8601ToPtime(const std::string& iISO8601Str) noexcept try...
### Problem ### If you apply timezone to a time in the past and that timezone changed the timezone specification to behave differently after a certain point, the existing timezone...
There is no exception description for ptime at all on the documentation page… https://www.boost.org/doc/libs/1_66_0/doc/html/date_time/posix_time.html#date_time.posix_time.ptime_class
I was wondering if this library supports `-D_GLIBCXX_DEBUG_PEDANTIC` builds. Currently I am seeing a failure. Steps to reproduce: ``` $ cat 2.cpp #include #include int main() { std::string hex("31393730300b"); std::string...
Many thanks for this fantastic library! I think it would be useful if it included conversion functions between `std::chrono::system_clock::timepoint` and `boost::posix_time::ptime`. They're conceptually the same thing so it ought to...
I noticed that the following code doesn't compile: ``` #include #include #include #include int main() { boost::gregorian::date d(2021, boost::date_time::Feb, 14); std::ostringstream oss; boost::archive::text_oarchive oa(oss); oa & d; std::cout
I noticed a significant performance difference in the following two approaches, when a facet is created for every parsing and when it's re-used. It turned out, that the latter is...
If we compute Julian Day Number for 13th August 2020 using julian_day() we get **2459075**. But actual Julian Day number is **2459074.5**. For 22nd April 1980 using julian_day() we get...
OS: `Windows 7 x64 ` Compilers: `MSVC 2017 15.9.19`, `GCC 4.9.3` boost: `1.72.0` #include namespace boost_ptime = boost::posix_time; std::istringstream iss1{ "%H:%M:%S" }; iss1.imbue(std::locale(std::locale::classic(), new boost_ptime::time_input_facet("07:00:00"))); boost_ptime::ptime time_value1; iss1 >> time_value1;...