Crates.io | calendar-duration |
lib.rs | calendar-duration |
version | 1.0.0 |
source | src |
created_at | 2023-09-19 01:50:13.035131 |
updated_at | 2023-09-19 01:50:13.035131 |
description | A library containing a calendar respecting time duration. |
homepage | |
repository | https://github.com/brave-experiments/calendar-duration-rs |
max_upload_size | |
id | 976426 |
size | 36,878 |
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