use-quarter 0.0.1

Primitive calendar quarter helpers
Documentation
  • Coverage
  • 6.67%
    1 out of 15 items documented1 out of 10 items with examples
  • Size
  • Source code size: 5.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 386.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s 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 calendar quarter helpers.

These helpers provide simple calendar quarter boundaries and checks.

Examples

use use_quarter::{Quarter, month_in_quarter, quarter_end_date, quarter_for_month};

assert_eq!(quarter_for_month(5).unwrap(), Quarter::Q2);
assert_eq!(quarter_end_date(2024, Quarter::Q1).day(), 31);
assert!(month_in_quarter(5, Quarter::Q2).unwrap());