A Rust library containing a calendar respecting duration that is compatible with the time
crate.
Supports parsing and displaying to/from strings. Also supports addition and subtraction with OffsetDateTime
.
Add the following dependency:
calendar-duration = "<latest version>"
See documentation for details.
y
for yearsmon
for monthsw
for weeksd
for daysh
for hoursm
for minutess
for secondsThe string can be prefixed with -
for negative durations.
1y3mon4d
-3w4m5s