5 ms·
> You know things are intense when you are programming a computer to perform the Computus (calculation of the date of Easter). Seems like that is a red herring
by lisper 3y ago
> You know things are intense when you are programming a computer to perform the Computus (calculation of the date of Easter).
Seems like that is a red herring since Easter is always on a Sunday, which, it seems to me, is all that could possibly matter given the description of the problem.
- djbusby 3y agoWhich Sunday? Just glance at Wikipedia to show it's not that easy. https://en.m.wikipedia.org/wiki/Date_of_Easter https://en.m.wikipedia.org/wiki/Date_of_Easter
- lisper 3y agoSure, the Sunday it's on moves around, but why would that matter? You're just trying to count the number of days the bus runs during a year under conditions like it runs/doesn't run on holidays/weekends. Easter is always a holiday, and always on a weekend. Under what circumstances would it matter which weekend?
- mteam88 3y agoIf the weekend rule was not part of the given schedule.
- mbrubeck 3y agoIt can matter if Easter can be on the same day as another holiday, like May Day.
- krallja 3y agoCan the public holiday of Easter be on May Day in any English-speaking country?
- lisper 3y agoAh. That makes sense. I thought Easter was always in March or April, but it can indeed occasionally be in May. TIL. Thanks!
- chgs 3y agoOrthodox easter is often in May, including this year (May 5). Western Easter is never in May.
- deleted 3y ago[deleted]
- tomjakubowski 3y agoYou need to compute Easter so you know when Good Friday is, if the buses run different than normal on that holiday. edit: or, because the buses would observe the Easter holiday the next day, quoting OP: > including the observed holiday which is the weekday after the holiday if the original holiday falls on a weekend.
- lisper 3y agoBut Good Friday has the same property as Easter, namely, that it's always on a Friday (duh!). Just like Mardi Gras is always on a Tuesday and Thanksgiving is always on a Thursday.
- Adrox 3y agoOn most countries in Europe either Good Friday and/or Easter Monday are Holidays… Then you have Ash wednesday and some other holidays around Lent (6 weeks before Easter)…