c++11 timestamp alternative to QDateTime

Hi,

The simple problem of converting a string to a datetime object seems to not have a simple solution in c++11/boost:

With Qt is easy:
QString s="20140101 93030123"; // hour=9 minute=30 seconds=30 milliseconds=123
QDateTime dt = QDateTime::fromString(s, "yyyyMMdd hmmsszzz");

Tried Boost local_time_input_facet to do the same thing but doesn't seem to have an equivalent for the format used in this case.

With c++11 chrono didn't find a way to read in the milliseconds.

Any ideas?

Thanks.
Topic archived. No new replies allowed.