strptime() - parse string as local time
int strptime( string fmt, string str );
Parse given time 'str' with a format string, see https://en.cppreference.com/w/cpp/io/manip/get_time
strftime(3)