Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use deprecated utcnow in ipython log line: (#895)
a = datetime.datetime.now(datetime.UTC).replace(tzinfo=None).strftime("%Y-%m-%dT%H:%M:%S.%fZ") b = datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%dT%H:%M:%S.%fZ") c = datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ") print("\n".join((a,b,c))) \# 2024-04-29T19:06:01.275418Z \# 2024-04-29T19:06:01.275460Z \# 2024-04-29T19:06:01.275501Z
- Loading branch information