olliemath / chronoutil

ChronoUtil module provides powerful extensions to rust's Chrono crate.
MIT License
21 stars 9 forks source link

feat: add quarterly and semiannual intervals #18

Open mgroenbroek opened 2 weeks ago

mgroenbroek commented 2 weeks ago

This PR adds two functions to DateRule: quarterly and semiannually. The first function increments a start date in 3-month intervals. The second function increments the start date by 6-month intervals.

mgroenbroek commented 2 weeks ago

I had a need for these two functions at work. Since I already implemented these as extension traits at work, I figured I would contribute the same change to the core package. Feel free to merge or discard.