disentcorp / dateroll

dateroll makes working with πŸ“… dates less painful.
Apache License 2.0
12 stars 1 forks source link

dateroll

dateroll makes working with πŸ“… dates less painful.

what's it for


πŸ”₯rapid start

$ pip install dateroll
$ python
>>> from dateroll import ddh
>>> ddh("t+2bd")
Date(2024,3,3)

>>> d = ddh('t')
>>> d - '2bd|NY'
Date(2024,2,29)

Use strings for all your date needs with dateroll.ddh (ddh= date duration helper). Our Date class is a drop-in replacement for datetime.date, and our Duration class is a drop-in replacement for datetime.timedelta or datetime.relativedelta.relativedelta. You can also use schedule strings to define a Schedule class, which is not so different than RRULE.

Please visit our interactive documentation! dateroll.disent.com

Happy rolling!