dateutil 2.9.0

2.9.0
Added 1
  • Made all dateutil submodules lazily imported using PEP 562, so on Python 3.7+ direct access like dateutil.tz.gettz() works without explicitly importing dateutil.tz
Changed 1
  • Updated tzdata version to 2024a
Fixed 1
  • Removed a call to datetime.utcfromtimestamp which is deprecated as of Python 3.12

Version 2.9.0 (2024-02-29)

Data updates
  • Updated tzdata version to 2024a. (gh pr #1342)
Features
  • Made all dateutil submodules lazily imported using PEP 562. On Python 3.7+, things like import dateutil; dateutil.tz.gettz("America/New_York") will now work without explicitly importing dateutil.tz, with the import occurring behind the scenes on first use. The old behavior remains on Python 3.6 and earlier. Fixed by Orson Adams. (gh issue #771, gh pr #1007)
Bugfixes
  • Removed a call to datetime.utcfromtimestamp, which is deprecated as of Python 3.12. Reported by Hugo van Kemenade (gh pr #1284), fixed by Thomas Grainger (gh pr #1285).
Documentation changes
  • Added note into docs and tests where relativedelta would return last day of the month only if the same day on a different month resolves to a date that doesn't exist. Reported by @hawkEye-01 (gh issue #1167). Fixed by @Mifrill (gh pr #1168)
View original

Upgraded? How did it go?

Discussion