Thanks for the help Lawrence! Have a good one.
Elanco US Inc.
Original Message:
Sent: 03-25-2024 19:26
From: Lawrence Drayton
Subject: Question Related to Operating Schedule (Holiday)
Hey Jason,
Yeah, that's right - You'll need to create one-off instances for each of those holidays. Things like Christmas, and other PH that fall on say First Friday of each October etc are easy to use a recurring rule for. These are a bit more nuanced.
------------------------------
Lawrence Drayton
Prvidr Pty Ltd
------------------------------
Original Message:
Sent: 03-25-2024 17:51
From: Jason Botea
Subject: Question Related to Operating Schedule (Holiday)
Hey Lawrence,
Thank you for the insight! Really appreciate it! So i need to set up these holidays every year since they are not fixed date, correct? Thanks!
------------------------------
Jason Botea
Elanco US Inc.
Original Message:
Sent: 03-25-2024 06:17
From: Lawrence Drayton
Subject: Question Related to Operating Schedule (Holiday)
Hey Jason,
The holidays you've listed are all related to Easter, which itself does not have a fixed date and is calculated as the first Sunday after the first full moon occurring on or after the equinox.
Given these limitations, a programmatic solution might be necessary:
Karfreitag (Good Friday): Occurs two days before Easter Sunday.
- There's no direct way to create a recurrence rule for Good Friday in RFC 5545 due to its dependence on Easter's date.
Ostermontag (Easter Monday): Occurs the day after Easter Sunday.
- Similarly, a direct recurrence rule for Easter Monday cannot be created with RFC 5545.
Auffahrt (Ascension Day): Occurs 39 days after Easter Sunday.
- This also cannot be directly represented in RFC 5545.
Pfingstmontag (Whit Monday): Occurs the day after Pentecost, which is 50 days after Easter.
- Like the others, this cannot be directly represented.
Because these holidays are based on Easter, which moves annually, and their occurrence is not fixed to a specific date but rather a specific number of days before or after Easter, the RFC 5545 standard does not offer a direct method to encode them as recurring events.
------------------------------
Lawrence Drayton
Prvidr Pty Ltd