36 ms·
This one wasn't on the cheat sheet but here is my favourite f"{datetime.utcnow():%Y-%m-%d}" Rather than using strftime https://towardsdatascience.com/python-f
by zikohh 4y ago
This one wasn't on the cheat sheet but here is my favourite
f"{datetime.utcnow():%Y-%m-%d}"
Rather than using strftime
https://towardsdatascience.com/python-f-strings-are-more-powerful-than-you-might-think-8271d3efbd7d https://towardsdatascience.com/python-f-strings-are-more-pow...
- blooalien 4y agoThank you for that one. I also like the shortcut date/time format specifiers %F, %T, %x, and %X they list there, too. Great link. Bookmarked…