Top "Boost-date-time" questions

Boost.

How to parse date/time from string?

Input: strings with date and optional time. Different representations would be nice but necessary. The strings are user-supplied and can …

c++ datetime boost utc boost-date-time
Performance of dynamic_cast?

Before reading the question: This question is not about how useful it is to use dynamic_cast. Its just about …

c++ performance dynamic-cast boost-date-time
Getting the current time as a YYYY-MM-DD-HH-MM-SS string

I'm trying to get the current time as a "YYYY-MM-DD-HH-MM-SS" formatted string in an elegant way. I can take the …

c++ boost string-formatting boost-date-time
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 gregorian::…

c++ boost boost-date-time
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, …

c++ boost timezone debian boost-date-time
unix timestamp to boost::posix_time::ptime

I need to convert double with number of seconds since the epoch to ptime. I'm prety sure there must be …

c++ boost unix-timestamp boost-date-time
How to get the current time zone?

In most of the examples I had seen: time_zone_ptr zone( new posix_time_zone("MST-07") ); But I just …

c++ boost timezone boost-date-time
How to get the hour, minutes and seconds

const boost::posix_time::ptime now= boost::posix_time::second_clock::local_time(); year_ = now.date().year(); month_ = now.date().…

c++ boost boost-date-time
boost: get the current local_date_time with current time zone from the machine

The problems is: I know how to get the local time in boost the code: boost::local_time::local_date_…

c++ boost timezone boost-date-time
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 …

c++ boost-date-time