Support for short syntax for intervals

Issue #27 closed
Former user created an issue

Hello and thank you for this nice package.

The following interval, as defined by ISO 8601 should resolve to 2020-01-01/2020-01-02, however:

aniso8601.parse_interval("2020-01-01/02")
(datetime.date(2020, 1, 1), datetime.date(200, 1, 1))

The same behavior is expected for months, hours, etc. Do you plan on implementing it?

Version: 8.1.0 from conda-forge

Comments (2)

  1. Brandon Nielsen repo owner

    I am in the middle of redoing a lot of the parser logic to fix some other issues. I have added some tests to make sure I get this implemented. No ETA, but hopefully “soon” in a 9.0.0 release.

    Thanks for bringing this to my attention!

  2. Log in to comment