diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 18:54:10 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-17 18:54:10 +0200 |
commit | 26765a20a4b744c472c61cdf930d5f42cd344d66 (patch) | |
tree | a895683f9a99846e28ba10616b0c0fc7f2ad8578 /src/options.rs | |
parent | 0ed916e47dfffe56f37ce52488160a5cc6718255 (diff) | |
download | rust_rrule-26765a20a4b744c472c61cdf930d5f42cd344d66.zip |
support for easter
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs index 9d037db..14712a5 100644 --- a/src/options.rs +++ b/src/options.rs @@ -45,7 +45,9 @@ pub struct ParsedOptions { pub byminute: Vec<usize>, pub bysecond: Vec<usize>, pub bynweekday: Vec<Vec<isize>>, + pub byeaster: Option<isize>, } + impl ParsedOptions { pub fn new(freq: Frequenzy, dtstart: &DateTime<Utc>) -> Self { Self { @@ -67,6 +69,7 @@ impl ParsedOptions { byhour: vec![dtstart.hour() as usize], byminute: vec![dtstart.minute() as usize], bysecond: vec![dtstart.second() as usize], + byeaster: None, } } |