Tin mới
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
type-featureA feature request or enhancement
documented that utcnow and utcfromtimestamp should not be used
Previously, we have documented that utcnow and utcfromtimestamp should not be used, but we didn't go so far as to actually deprecate them, and I wrote a whole article about how you shouldn't use them.
datetime.utcnow() should return a timezone aware datetime #90477
datetime.datetime.utcnow should return a UTC timestamp #56965
Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp. #77474
GH-103857: Deprecate utcnow and utcfromtimestamp #103858
gh-103857: Update deprecation stacktrace to point to calling line #104431
gh-103857: Document utcnow and utcfromtimestamp deprecations in What's New #104542