Glyph on Nostr: OK so I wrote these two functions (and I did not even unit test them, so they're ...
OK so I wrote these two functions (and I did not even unit test them, so they're probably wrong):
https://gist.github.com/glyph/ad25a9e8d93bb9f7ac15a947cbf53a5d
There must be a better way to do this with the standard library, right? Something buried in `datetime` somewhere?
https://gist.github.com/glyph/ad25a9e8d93bb9f7ac15a947cbf53a5d
There must be a better way to do this with the standard library, right? Something buried in `datetime` somewhere?