/dateroll

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

Primary LanguagePythonApache License 2.0Apache-2.0

dateroll

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

what's it for

  • $+$ and $-$ dates and time periods
  • πŸŽ‰ dealing with holidays
  • computing πŸ’Έ payments and πŸͺ™ accruals
  • handling 🎫 stubs

πŸ”₯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!

  • The Disent Team