User:Dcorrin

From TheKolWiki
Jump to: navigation, search

Next Dates:

  • Festival of Jarlsberg (next): January 23, 2023 (51 days) [Actually lesser of 51 days or 30 days]
  • Valentine's Day (next): February 03, 2023 (62 days) [Lesser of 62 days or 73 days]
  • St. Sneaky Pete's Day (next): February 10, 2023 (69 days) [Lesser of 69 days or 104 days]
  • Oyster Egg Day (next): February 17, 2023 (76 days) [or Easter]
  • El Dia de Los Muertos Borrachos (next): February 25, 2023 (84 days)
  • Generic Summer Holiday (next): March 06, 2023 (93 days)
  • Dependence Day (next): December 09, 2022 (6 days) [Lesser of 6 days or 213 days]
  • Arrrbor Day (next): December 17, 2022 (14 days)
  • Labór Day (next): December 27, 2022 (24 days)
  • Halloween (next): January 06, 2023 (34 days) [Lesser of 34 days or 332 days]
  • Feast of Boris (next): January 13, 2023 (41 days) [or U.S. Thanksgiving]
  • Yuletide (next): January 18, 2023 (46 days)
  • Groundhog Day (next): February 02, 2023 (61 days)
  • April Fool's Day (next): April 01, 2023 (119 days)
  • Cinco de Mayo (next): May 05, 2023 (153 days)
  • Talk Like a Pirate Day (next): September 19, 2023 (290 days)
  • Columbus Day - No idea (2nd Monday in October)
  • Crimbo Day (next): December 25, 2022 (22 days)
  • Crimbo Season (next): December 01, 2023 (363 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.