summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 18:54:10 +0200
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-10-17 18:54:10 +0200
commit26765a20a4b744c472c61cdf930d5f42cd344d66 (patch)
treea895683f9a99846e28ba10616b0c0fc7f2ad8578 /src/options.rs
parent0ed916e47dfffe56f37ce52488160a5cc6718255 (diff)
downloadrust_rrule-26765a20a4b744c472c61cdf930d5f42cd344d66.zip
support for easter
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs3
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,
}
}