From ab78a9d2210ccd23cc467c9af64d6edd7e8c9fbe Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 15 Aug 2022 19:20:14 +0200 Subject: [PATCH] add io file --- src/io.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/io.rs diff --git a/src/io.rs b/src/io.rs new file mode 100644 index 0000000..a519577 --- /dev/null +++ b/src/io.rs @@ -0,0 +1,13 @@ +use ics::ICalendar; + +pub fn export( + timetable: Vec, + dates: std::collections::HashMap< + usize, + Vec<(chrono::DateTime, chrono::DateTime)>, + >, +) -> ICalendar<'static> { + let mut calendar = ICalendar::new("2.0", "cal8tor"); + + calendar +}