View source: R/recur-on-easter.R
recur_on_easter | R Documentation |
recur_on_easter()
is a special helper to recur on Easter. Easter is
particularly difficult to construct a recurrence rule for.
recur_on_easter(x, offset = NULL)
x |
A recurrence rule. |
offset |
Deprecated in favor of using An offset in terms of a number of days on either side of Easter to recur on. This offset must still fall within the same year, otherwise the date will be silently ignored. |
An updated rrule.
on_easter <- yearly() %>% recur_on_easter()
# Rather than:
if (FALSE) {
on_easter_monday <- yearly() %>% recur_on_easter(1)
}
# Please use:
on_easter_monday <- roffset(on_easter, 1)
alma_search("1999-01-01", "2001-01-01", on_easter)
both <- runion(on_easter, on_easter_monday)
alma_search("1999-01-01", "2001-01-01", both)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.