Skip to content

IsoCal is an extension to Chrono's IsoWeek (ISO 8601) struct that provides additional formatting and functions, such as the "W" prefix to weeks and the ISO ordinal.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

tonytins/isocal

Repository files navigation

IsoCal

GitHub Workflow Status (branch)

GitHub commit activityIsoCal 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.

Requirements

Installation

[dependencies]
chrono = "0.4"
isocal = "1"

Usage

use chrono::prelude::*;
use isocal::IsoDate;

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

    println!("{}", isow.week_fancy());
}

To-do

  • Target Rust 2024 Edition

License

This project is dual-licensed under the MIT or Apache-2.0.

About

IsoCal is an extension to Chrono's IsoWeek (ISO 8601) struct that provides additional formatting and functions, such as the "W" prefix to weeks and the ISO ordinal.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Languages