This is the POSIX strptime function
