In C++ is there any way to extract a time from a string?
CString str;
str="17:18:58,9187120";
Is there any utility for converting this string in to a Time variable?
In C++ is there any way to extract a time from a string?
CString str;
str="17:18:58,9187120";
Is there any utility for converting this string in to a Time variable?
Not in C++ or its standard library. C++ barely handles its own complexity, it's too much to ask for anything that isn't common to all cultures, platforms, galaxies and vegetables.
For now you can do with Boost's string conversion functions.
The POCO library has a DateTimeParser class which might be helpful: http://www.appinf.com/docs/poco/Poco.DateTimeParser.html