Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 7737:2b0164ac5cfa
doc: clean table for "the request variable"
alphabetize the keys, also remove second form key from first table.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 13 Feb 2024 13:07:57 -0500 |
| parents | 6894f152d49a |
| children | d5d7ecd31864 |
line wrap: on
line source
# https://issues.roundup-tracker.org/issue2551278 # datetime.utcnow deprecated try: from datetime import datetime, UTC def utcnow(): return datetime.now(UTC) except ImportError: from datetime import datetime def utcnow(): return datetime.utcnow()
