Python f-strings can usually be used to shorten and accelerate .strfdate() and .strftime()...
>>> datetime.now().strftime("%Y-%m-%d %H:%M") '2022-12-01 08:04' >>> f"{datetime.now():%Y-%m-%d %H:%M}" '2022-12-01 08:04' >>> datetime.now().strftime("%Y-%m-%d %I %p") '2022-12-01 08 AM' >>> f"{datetime.now():%Y-%m-%d %I %p}" '2022-12-01 08 AM'Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.