isocal 0.1.1

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.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chrono::{Datelike, Local};
use isocal::{IsoCal, IsoDate};

pub fn main() {
    let dt = Local::now();
    let isow = dt.iso_week();

    println!("ISO Date: {}-{}T{}", isow.date(), dt.day(), dt.time());
    println!(
        "It's day {} of the {} ISO calendar year.",
        dt.iso_ordinal(),
        isow.year()
    );
}