Crate intdate

Source
Expand description

ci-badge docs-badge crate-version

§intdate

A simple integer date library inspired by Python’s int_date.

§Sample Usage

    let date = intdate::from_str("2020-01-01").unwrap();
    println!("{}", date.is_year_leap());

Structs§

IntDate
Struct representing a valid intdate.

Enums§

IntDateError
Represents the possible ways how creating an IntDate may fail.

Functions§

from_str
Helper function for creating an IntDate.
from_u32
Helper function for creating an IntDate.