v0.2
v0.2
- Undate and UndateInterval now include an optional label for named dates or time periods
- Support partially known dates with missing digits (e.g. 1991-1?-10)
- Rich comparison checks for Undate
- improved equality check; now supports comparing Undate object with day precision to datetime.date
- implementations and tests for comparison, sorting and contains (
>
,<
,>=
,<=
, andin
)
- static method to initialize an Undate object from a datetime.date (used for comparisons)
- Example Jupyter notebook comparing Undate duration calculation against
dates and durations in the Shakespeare and Company Project events dataset - Preliminary support for parsing Extended Date Time Format (EDTF) level 0 and some of level 1 and transforming into Undate objects
- Dropped support for python 3.8; added python 3.12
- Python type improvements and preliminary type checking with mypy
What's Changed (auto-generated)
- Move tox config into setup.cfg #58 by @rlskoeser in #59
- Added label field to UndateInterval, added repr methods, and tests. by @jdamerow in #52
- dynamically import dateformatter subclasses by @rlskoeser in #50
- docs: add rlskoeser as a contributor for blog by @allcontributors in #62
- support partially known dates by @rlskoeser in #36
- preliminary date comparison methods by @rlskoeser in #65
- Preliminary edtf parsing (levels 0 and some of 1) with lark by @rlskoeser in #67
- Type cleanup based on errors reported by mypy by @rlskoeser in #66
- Release v0.2 by @rlskoeser in #69
Full Changelog: 0.1...0.2