Can anybody please guide how can i get functionality to parse date time string to time_t and std:tm
On Linux and Mac i was able to carry out the task using strptime(), but the same does not comply for windows. Hence i am looking if there exists an maintained addon there for it, which handles this complexity.
I did use the strptime function in combination with mktime without any problems. But this was with OF version 0.98 on visual studio 2015. There are no plans to update the app so I’m afraid i cant help you any further.
Maybe try and go with poco as bakercp suggests?
strptime as wrapper for the existing getTime function
-It failed to parsed the datetime format on windows, which had succeeded on Linux/Mac. Might be due pre-initialisation of std::TM structure with current time.
-OF 0.10.0 does not come with POCO lib anymore, they seemed to moved to boost for most of their functionality
-As my primary means to reference dateTime is time_t, Poco lib required lot of conversions for target conversion string -> time_t or string->TM
-Conversion for format like “%H:%M” were failing
Above are results i faced from limited exploration i had, it might be possible that i had missed something required.