forked from Anri/cal8tor
add io file
This commit is contained in:
parent
bbe73a029c
commit
ab78a9d221
1 changed files with 13 additions and 0 deletions
13
src/io.rs
Normal file
13
src/io.rs
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
use ics::ICalendar;
|
||||||
|
|
||||||
|
pub fn export(
|
||||||
|
timetable: Vec<crate::timetable::models::Day>,
|
||||||
|
dates: std::collections::HashMap<
|
||||||
|
usize,
|
||||||
|
Vec<(chrono::DateTime<chrono::Utc>, chrono::DateTime<chrono::Utc>)>,
|
||||||
|
>,
|
||||||
|
) -> ICalendar<'static> {
|
||||||
|
let mut calendar = ICalendar::new("2.0", "cal8tor");
|
||||||
|
|
||||||
|
calendar
|
||||||
|
}
|
Reference in a new issue