date-tools 0.1.0
Civil dates, weekdays, month arithmetic and ISO 8601, with no time zone database
Install
cargo add date-tools --registry rupm
In Ruststudio: Packages, search for date-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# date-tools
Civil dates, weekdays, month arithmetic and ISO 8601, with no time zone database
Add it with `rupm add date-tools` (or `cargo add date-tools --registry rupm`).
```rust
let d = date_tools::Date::parse_iso("2024-01-31")?;
assert_eq!(d.add_months(1)?.to_iso(), "2024-02-29");
assert_eq!(d.weekday(), date_tools::Weekday::Wednesday);
```