Python has pretty good date parsing but is the only way to recognize a datetime such as \"Today 3:20 PM\" or \"Yesterday 11:06 AM\" by creating a new date today and doing subtra
I am not yet completely up to speed on Python yet, but your question interested me, so I dug around a bit.
Date subtraction using timedelta is by far the most common solution I found.
Since your question asks if that's the only way to do it, I checked out the strftime format codes to see if you could define your own. Unfortunately not. From Python's strftime documentation:
... The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common.
The following is a list of all the format codes that the C standard (1989 version) requires ...
Anyhow, this isn't a definitive answer, but maybe It'll save others time barking up the wrong tree.