Why C++ standard support function strftime()
but not strptime()
? strftime()
is available to change a time to string, but there isn't a function which can change a string back to time.
On Posix strptime()
is available as a C-like function, using it need to take care of the potential problem of mixed C and C++ code.