User:Dcorrin

From TheKolWiki
Jump to: navigation, search

Next Dates:

  • Festival of Jarlsberg (next): August 22, 2024 (87 days) [Actually lesser of 87 days or 220 days]
  • Valentine's Day (next): May 29, 2024 (2 days) [Lesser of 2 days or 263 days]
  • St. Sneaky Pete's Day (next): June 05, 2024 (9 days) [Lesser of 9 days or 294 days]
  • Oyster Egg Day (next): June 12, 2024 (16 days) [or Easter]
  • El Dia de Los Muertos Borrachos (next): June 20, 2024 (24 days)
  • Generic Summer Holiday (next): June 29, 2024 (33 days)
  • Dependence Day (next): July 08, 2024 (42 days) [Lesser of 42 days or 38 days]
  • Arrrbor Day (next): July 16, 2024 (50 days)
  • Labór Day (next): July 26, 2024 (60 days)
  • Halloween (next): August 05, 2024 (70 days) [Lesser of 70 days or 157 days]
  • Feast of Boris (next): August 12, 2024 (77 days) [or U.S. Thanksgiving]
  • Yuletide (next): August 17, 2024 (82 days)
  • Groundhog Day (next): February 02, 2025 (251 days)
  • April Fool's Day (next): April 01, 2025 (309 days)
  • Cinco de Mayo (next): May 05, 2025 (343 days)
  • Talk Like a Pirate Day (next): September 19, 2024 (115 days)
  • Columbus Day - No idea (2nd Monday in October)
  • Crimbo Day (next): December 25, 2024 (212 days)
  • Crimbo Season (next): December 01, 2024 (188 days)
  • Friday 13th - No idea (need day of week function)


Table of recurring dates:

Jarlsuary 1 - Festival of Jarlsberg
Frankuary 4 - Valentine's Day
Starch 3 - St. Sneaky Pete's Day
April 2 - Oyster Egg Day
Martinus 2 - El Dia de Los Muertos Borrachos
Bill 3 - Generic Summer Holiday
Bor 4 - Dependence Day
Petember 4 - Arrrbor Day
Carlvember 6 - Labór Day
Porktober 8 - Halloween
Boozember 7 - Feast of Boris
Dougtember 4 - Yuletide


New Year's Day (January 1 or 2) (Also Festival of Jarlsberg)
Groundhog Day (February 2)
Valentine's Day (February 14)
April Fool's Day (April 1)
Cinco de Mayo (May 5)
Talk Like a Pirate Day (September 19)
Columbus Day (2nd Monday in October) - this is harder
Halloween (October 31)
Use December 1st (when the advent/creatures start) for crimbo or the 25th?
Perhaps call one crimbo day and the other crimbo season?

Why are Feast of Boris, Dependence Day, St Sneaky Pete's Day, and OYSTER EGG DAY not listed as doubles in Calendar - incomplete in the real life holidays section, they would be U.S. Thanksgiving (variable), July 4th, St. Patrick's Day (March 17), Easter (variable)


Notes:

Need a days to Real Date - Borrowed Template:Age in Days and Template:Gregorian serial date from wikipedia
Cascading ifs for substring of holiday
Compute value or minimum of two values if that is the case
Call it Event/Day? Want to reserve the main event template for next event.
Could also implement Event/Last - don't know if anyone would use that though.
Might want to call out if the time is the same (qv drunksgiving)

Weekday in month and it's subfunctions /calc and /ordinal can be borrowed from wikipeida to calculate the real calendar date for thansgiving and Columbus day.
There is also a template Computus with 9 sub-functions which can be used to compute Easter.
Friday the 13th remains an issue, as there can be anywhere from 28 to 427 days between occurances, and even though there is from 1-3 per year, the cycle is? 28 years long.
We could check every ordinal friday for the next 14 months to find the first match to a 13...
Actually we are currently (as of December 2012) in a 14 month low period next friday 13th doesn't occur until September 2013.