Date & Time Packages
Date, time, and timezone parsing, formatting, and manipulation libraries for reliable scheduling and display logic (date-fns, Day.js, Chrono).
Packages in Date & Time
Kind
Sort:Used by Most Apps
python-dateutil
Powerful extensions to Python's datetime module for parsing, deltas, recurrence, and timezones.
croniter
Parses cron schedule strings and iterates the matching datetime values, with DST, second/year fields, and last-weekday support.
pendulum
A drop-in replacement for Python's datetime with timezone-aware objects by default and a friendlier API.
types-pytz
PEP 561 type stubs that add static typing to the Python pytz timezone library
cron-descriptor
A Python library that converts cron expressions into plain-English, localized descriptions.
monotonic
Backport of time.monotonic() providing a clock that never goes backwards for Python 2 and pre-3.3 Python 3
Arrow
Better, human-friendly dates and times for Python
humanize
Converts numbers, dates, times, and file sizes into human-readable text for Python apps.
django-timezone-field
Django model, form, and REST framework fields for zoneinfo and pytz timezone objects
holidays
A fast, efficient Python library for generating country- and subdivision-specific public holidays on the fly.
time-machine
Travel through time in your Python tests by mocking datetime and time at the C level.
timezonefinder
Fast, fully offline timezone lookup for any WGS84 coordinate on earth
timeago
Format Python datetimes into human-friendly '3 hours ago' relative time strings across 40+ locales.