I have a string written in xs:datetime
format (https://www.w3schools.com/xml/schema_dtypes_date.asp) which I need to parse it and convert it to std::chrono::timepoint
. In the standard libary there is std::get_time
manipulator but it returns a std::tm
and it does not parse milliseconds. I have many elements to parse so performances are also important. Is there anything else in either the standard library or Boost which I could use?
Asked
Active
Viewed 46 times
0

Alan Birtles
- 32,622
- 4
- 31
- 60

nyarlathotep108
- 5,275
- 2
- 26
- 64
-
The code in the duplicate should work with an adjustment to the format string – Alan Birtles Aug 06 '20 at 09:01
-
@AlanBirtles that answer ignores milliseconds entirely – nyarlathotep108 Aug 06 '20 at 09:04
-
Howard Hinnant's answer doesn't – Alan Birtles Aug 06 '20 at 09:10