I want to #define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG so as to use nanosecond resolution in boost datetime. I want to use this nanosecond across th ...
I want to #define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG so as to use nanosecond resolution in boost datetime. I want to use this nanosecond across th ...
Say I have a nanoseconds, 1614601874317571123. This represents the nanoseconds from epoch (1970-01-01). That is "2021-03-01T12:31:14.317571123" in I ...
How do i calculate the millisecond difference from the following Ptime ,I am using boost::ptime I'm trying to calculate the time_duration in milliseco ...
I'm having problems writing a wrapper class using the boost::locale::date_time library. Specifically, I cannot create a global object from my class, t ...
Converting from UUID timestamp to seconds since EPOCH seems quite easy based on the specs, also based on Cassandra's C++ driver source code based on i ...
Example I have an Rcpp function where I would like to call boost::posix_time::time_from_string(). I've taken the example code from the boost docume ...
My source code didn't compile with Boost C++ 1.60 Here is what I included in my source code: System info: ...
While building MongoDB with SCons and boost, I'm getting errors. Here's my command line: C:\mongo-cxx-driver>Scons --prefix=$HOME/mongo-client- ...
I would like to have a function to get time since epoch in ns. I was having a solution using boost::ptime: I also tested the solution using std::ch ...
Is it possible to use the Boost.DateTime library from C, and if so are there any examples available (preferably covering the build process using gcc-t ...
as I tried to ask in my title, I am talking about regional time format. I have an application that can display the time/date, but from US users I get ...
I am trying to convert a string timestamp expressed in the following format: "28.08.2017 03:59:55.0007" to a std::chrono::system_clock::time_point by ...
I feel like I'm missing something obvious here. I can easily make a time_duration with milliseconds, microseconds, or seconds by doing: But there's ...
This is similar to How to get the current time zone? The above code throws 'bad cast' exception. The time zone from tzname or GetTimeZoneInformatio ...
In Linux, i am reading epoch time from "/proc/stat" as btime and i want to convert to readable date and time format with c++ boost. I have tried belo ...
I'm trying to handle dates and times in my code, and have been pointed in the direction of the boost library - specifically, boost::locale::date_time ...
In the context of a huge computing, I estimate the total time of the computation time during the computation. To do that, I compare my time to the sta ...
I am working on code which needs to compile on NDK toolchain. Unfortunately, latest version only supports till gcc4.9 which does not support C++11 dat ...
I have a member variable in my class: I want to initialize it in the constructor to a well known value such that I know it hasn't been set by the p ...
I am having trouble trying to work out how to get Boost to format a date/time object as a string. I am trying to set a format specifier but it is igno ...