IsoCal is an extension to Chrono's IsoWeek (ISO 8601) that provides additional formatting and functions, such as the "W" prefix to weeks and the ISO ordinal.
- Rust 2021 Edition or newer
- IDEs or Editors
[dependencies]
chrono = "0.4"
isocal = "1"
use chrono::prelude::*;
use isocal::IsoDate;
fn main() {
let now = Local::now();
let isow = now.iso_week();
println!("{}", isow.week_fancy());
}
- Target Rust 2024 Edition
This project is dual-licensed under the MIT or Apache-2.0.