Typed and DST-safe datetimes for Python, written in Rust
RT @alexzeitler_: How to save datetimes for future events - (when UTC is not the right answer)
Arrow is a Python library that offers a sensible, human-friendly approach to creating, manipulating, formatting and converting dates, times, and timestamps. It implements and updates the datetime type, plugging gaps in functionality, and provides an intelligent module API that supports many common creation scenarios. Simply put, it helps you work with dates and times with fewer imports and a lot less code.
Arrow is heavily inspired by moment.js and requests.
Why?
Python’s standard library and some other low-level modules have near-complete date, time and time zone functionality but don’t work very well from a usability perspective:
Too many modules: datetime, time, calendar, dateutil, pytz and more
Too many types: date, time, datetime, tzinfo, timedelta, relativedelta, etc.
Time zones and timestamp conversions are verbose and unpleasant
Time zone naivety is the norm
Gaps in functionality: ISO-8601 parsing, time spans, humanization
Automatic Timezone Detection Using JavaScript
Times is a small, minimalistic, Python library for dealing with time conversions between universal time and arbitrary timezones.