blob: 156432fcc99700f41e1092ecfb064d0ed7df8579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use std::path::Path;
use utils::fileutil as utils;
pub fn do_unroll(filepath: &Path) {
let cal = utils::read_calendar_from_path(filepath).unwrap();
for event in cal.events_iter() {
if event.has_recur() {
let recurs = event.get_recur_datetimes();
for datetime in recurs {
println!("{} {}", datetime.timestamp(), cal.get_path_as_string().unwrap_or_else(|| "".to_string()));
}
}
}
}
|