Skip to content

Releases: dh-tech/undate-python

v0.4

11 Apr 15:18
6098361
Compare
Choose a tag to compare
  • Undate is now Calendar aware / Calendar explicit; default is Gregorian
    • New BaseCalendarConverter class, with additional methods required for calendar converters
    • HebrewDateConverter: Parsing and calendar conversion for Hebrew/Anno Mundi
    • IslamicDateConverter: Parsing and calendar conversion for Islamic/Hijri
    • GregorianDateConverter: basic Gregorian calendar logic
    • undate.Calendar class to track Undate object calendar, and match with calendar converters
  • BaseDateConverter class now includes nested/descendant subclasses when looking
    for available converters
  • Undate.to_undate method to convert supported date objects to Undate (datetime.date, datetime.datetime, and internal undate.date.Date class)
  • UndateInterval improvements
    • Can be initialized with Undate objects or any type supported by Undate.to_undate
    • New method for contains (in), to determine if another interval or date is contained by an interval
    • New method intersection to determine the overlap between two UndateInterval objects
  • EDTF parser : fixed day parsing for some unsupported cases
  • Dropped support for Python 3.9
  • Reorganized examples folder to avoid unnecessary nesting
    • ISMI data has been updated from older JSON data to examples in RDF (turtle)

What's Changed

(auto-generated list of changes)

Full Changelog: 0.3...0.4

v0.3

18 Nov 22:32
08d2d99
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2...0.3

v0.2

25 Apr 19:42
215542e
Compare
Choose a tag to compare

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 (>, <, >=, <=, and in)
  • 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)

Full Changelog: 0.1...0.2

v0.1

03 Mar 19:33
e8f71d2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/dh-tech/undate-python/commits/0.1