all AI news
It's Time For A Change: datetime.utcnow() Is Now Deprecated
Nov. 18, 2023, 7:24 p.m. |
Simon Willison's Weblog simonwillison.net
It's Time For A Change: datetime.utcnow() Is Now Deprecated
Miguel Grinberg explains the deprecation of datetime.utcnow() and utcfromtimestamp() in Python 3.12, since they return naive datetime objects which cause all sorts of follow-on problems.
The replacement idiom is datetime.datetime.now(datetime.timezone.utc)
Via @miguelgrinberg
More from simonwillison.net / Simon Willison's Weblog
Fast groq-hosted LLMs vs browser jank
1 day, 6 hours ago |
simonwillison.net
AI counter app from my PyCon US keynote
2 days, 4 hours ago |
simonwillison.net
Understand errors and warnings better with Gemini
2 days, 22 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Software Engineer for AI Training Data (School Specific)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Python)
@ G2i Inc | Remote
Software Engineer for AI Training Data (Tier 2)
@ G2i Inc | Remote
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US