olliemath / chronoutil

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

Sub operator #9

Closed Xydez closed 1 year ago

Xydez commented 1 year ago

Hello!

Is there any good reason why the Add operator is implemented but not the Sub operator? For RelativeDuration and Datelike

olliemath commented 1 year ago

Hey,

so no actually. It's only really missing as I tend to add negative durations rather than subtract a positive one in my code (e.g. you can do my_date + (-my_duration))

Happy to implement this though

olliemath commented 1 year ago

See 0.2.5 release