I'm learning the python's datetime module, and found two useful functions:
datetime.strptime()
and datetime.strftime()
.
I know that the functions meaning, datetime.strftime()
could convert a time object to a specified format string, I could understand the strftime
as "string from time", the "f" means "from". But what's the meaning of the "p" in strptime()
? I understand it's a function as "convert a string to a time object", so it should be strttime()
instead of strptime()
.
Who else also feel confused on this function name? Thanks in advance no matter you could answer this question or share the same confusion with me.