Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 8050:093d2e0761d4
docs: add directions on saving the key to the pgp.mit.edu keyserver
This is the keyserver we use in the docs. IT should always have the
most up to date key.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 01 Jul 2024 20:16:45 -0400 |
| parents | d5d7ecd31864 |
| children |
line wrap: on
line source
# https://issues.roundup-tracker.org/issue2551278 # datetime.utcnow deprecated try: from datetime import UTC, datetime def utcnow(): return datetime.now(UTC) except ImportError: from datetime import datetime def utcnow(): return datetime.utcnow()
