use-month 0.0.1

Primitive month helpers
Documentation
  • Coverage
  • 4.55%
    1 out of 22 items documented1 out of 9 items with examples
  • Size
  • Source code size: 6.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 389.77 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-calendar
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

Primitive month helpers.

These helpers expose explicit month names and Gregorian days-in-month logic.

Examples

use use_month::{Month, days_in_month, month_from_number};

let month = month_from_number(2).unwrap();

assert_eq!(month, Month::February);
assert_eq!(month.short_name(), "Feb");
assert_eq!(days_in_month(2024, 2).unwrap(), 29);