boost-date-time
Ownership/delete'ing the facet in a locale (std::locale)
I w开发者_运维百科rote the following function to get a date/time string using boost.date_time.[详细]
2023-02-17 19:09 分类:问答Get time_t / timeval corresponding to ( local_timezone ) midnight on a given date
Given a time_t or struct timeval, how do I get the timeval or time_t of midnight EST/EDT ( local timezone ) on that day ?[详细]
2023-02-09 00:15 分类:问答Year is out of valid range when passing pos_infin as timeout to timed_wait
The following code reproduces the error: #include <iostream> #include \"boost/thread.hpp\" #include \"boost/date_time/posix_time/ptime.hpp\"[详细]
2023-02-03 19:58 分类:问答How do I convert boost::posix_time::ptime to time_t?
Is there some \"standard\" way or the best I can do is to compute it directly by subtracting from grego开发者_如何学运维rian::date(1970,1,1)?Since @icecrime\'s method converts twice (ptime uses linear[详细]
2023-01-30 17:50 分类:问答Runtime Check Failure when using Boost Date Time Library and Visual Studio 2008
I\'m a first year computer science student, writing a c++ program that bubble sorts an array of randomly assigned floats and then uses a binary chop search to find the value of the last element in the[详细]
2023-01-29 19:48 分类:问答How do I get the current UTC offset (time zone)?
How do I get the current UTC offset (as in time zone, but just the UTC offset of the current moment)?[详细]
2023-01-19 02:22 分类:问答basic boost date_time input format question
I\'ve got a pointer to a string, (char *) as input. The date/time looks like this: Sat, 10 Apr 2010 19:30:00[详细]
2022-12-26 14:39 分类:问答Simplest way to get current time in current timezone using boost::date_time?
If I do date +%H-%M-%S on the commandline (Debian/Lenny), I get a user-friendly (not UTC, not DST-less, the time a normal person has on their wristwatch) time printed.[详细]
2022-12-26 02:28 分类:问答Accessing an custom class from a JDO Class
Right, I don\'t know if I\'m barking entirely up the wrong tree here - I\'m finding JDO and开发者_StackOverflow社区 the Google AppEngine a bit tricky to get the hang of. Anyway, here goes.[详细]
2022-12-16 21:46 分类:问答