Explanation
Here's an explanation of both functions for clarity:
strptime(): This function is used to parse (convert) a string representation of a date/time into a datetime object.
strftime(): This function is used to format a datetime object into a string according to a specified format.
So, strftime() is the function that converts a datetime object to a string representation of the time, which is what the question asks for.