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/iter.rs | |
parent | 0ed916e47dfffe56f37ce52488160a5cc6718255 (diff) | |
download | rust_rrule-26765a20a4b744c472c61cdf930d5f42cd344d66.zip |
support for easter
Diffstat (limited to 'src/iter.rs')
-rw-r--r-- | src/iter.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iter.rs b/src/iter.rs index e556318..59c9c96 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -305,6 +305,8 @@ pub fn is_filtered(ii: &IterInfo, current_day: usize, options: &ParsedOptions) - || (ii.nwdaymask().is_some() && not_empty(ii.nwdaymask().unwrap()) && (ii.nwdaymask().unwrap()[current_day]) == 0) + || (options.byeaster.is_some() + && !(includes(ii.eastermask().unwrap(), &(current_day as isize)))) || ((not_empty(&options.bymonthday) || not_empty(&options.bynmonthday)) && !includes(&options.bymonthday, &ii.mdaymask().unwrap()[current_day]) && !includes(&options.bynmonthday, &ii.nmdaymask().unwrap()[current_day])) |