DateTime from String
Hello, I read a string with a date / time format, like: Fri, 29 Jul 2011 13:48:57 +0000 Can I use Boost.DateTime to convert the string into a std::time_t value? How can I do this? Thanks Phil
I read a string with a date / time format, like: Fri, 29 Jul 2011 13:48:57 +0000 Can I use Boost.DateTime to convert the string into a std::time_t value? How can I do this?
See the DateTime docs for details: http://www.boost.org/doc/libs/1_47_0/doc/html/date_time/posix_time.html#ptim...
On 2011-07-30 20:42:37 +0200, Igor R said:
I read a string with a date / time format, like: Fri, 29 Jul 2011 13:48:57 +0000 Can I use Boost.DateTime to convert the string into a std::time_t value? How can I do this?
See the DateTime docs for details: http://www.boost.org/doc/libs/1_47_0/doc/html/date_time/posix_time.html#ptim...
Thanks, but can I use a "parsing string"? The examples shows a other format, so I must convert my string or tell the "time_from/iso_string" to use a other format. How can I set the format? Thanks
participants (3)
-
Igor R
-
Kraus Philipp
-
Philipp Kraus