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?
@pganssle @glyph I don't follow. In that code I used "import datetime; import time", I didn't use "from datetime import ...".