use-recurrence 0.0.1

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

The first pass supports simple daily, weekly, monthly, and yearly rules without timezone handling.

Examples

use use_date::CalendarDate;
use use_recurrence::{RecurrenceFrequency, recurring_dates};

let start = CalendarDate::new(2024, 1, 31).unwrap();
let dates = recurring_dates(start, RecurrenceFrequency::Monthly, 1, 4).unwrap();

assert_eq!(dates[1], CalendarDate::new(2024, 2, 29).unwrap());
assert_eq!(dates[2], CalendarDate::new(2024, 3, 31).unwrap());
assert_eq!(dates[3], CalendarDate::new(2024, 4, 30).unwrap());