Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 7689:29dba38a852a
chore: update the sha256 sum for the newest python:3-alpine image
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 30 Oct 2023 21:57:21 -0400 |
| 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()
