6 releases
0.3.1 | May 9, 2021 |
---|---|
0.3.0 | May 7, 2021 |
0.2.3 | May 2, 2021 |
0.2.0 | Apr 29, 2021 |
0.1.1 | Apr 26, 2021 |
#452 in Date and time
27KB
593 lines
Dateless
Dateless
Dateless is an events & calendar library for Rust.
Usage
use dateless::prelude::*;
use chrono::{Utc, Duration};
fn main() {
let mut calendar = Calendar::new();
let event = EventPartial::new(String::from("Anne's birthday"))
.whole_day(Utc::today())
.weekly()
.complete();
calendar.add_event(event);
let seven_days_later = Utc::today() + Duration::days(7);
println!("{:#?}", calendar.day(seven_days_later));
}
It prints to stdout
:
[
EventOccurrence {
name: "Anne's birthday",
description: None,
period: WholeDays(
2021-05-08Z,
2021-05-08Z,
),
},
]
Contribution
Soon
Dependencies
~3MB
~61K SLoC