User:Dcorrin

From A KoL Wiki
Revision as of 18:34, 14 December 2012 by imported>Dcorrin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Next Dates:

  • Festival of Jarlsberg (next): September 09, 2025 (2 days) [Actually lesser of 2 days or 117 days]
  • Valentine's Day (next): September 20, 2025 (13 days) [Lesser of 13 days or 160 days]
  • St. Sneaky Pete's Day (next): September 27, 2025 (20 days) [Lesser of 20 days or 191 days]
  • Oyster Egg Day (next): October 04, 2025 (27 days) [or Easter]
  • El Dia de Los Muertos Borrachos (next): October 12, 2025 (35 days)
  • Generic Summer Holiday (next): October 21, 2025 (44 days)
  • Dependence Day (next): October 30, 2025 (53 days) [Lesser of 53 days or 300 days]
  • Arrrbor Day (next): November 07, 2025 (61 days)
  • Labór Day (next): November 17, 2025 (71 days)
  • Halloween (next): November 27, 2025 (81 days) [Lesser of 81 days or 54 days]
  • Feast of Boris (next): December 04, 2025 (88 days) [or U.S. Thanksgiving]
  • Yuletide (next): December 09, 2025 (93 days)
  • Groundhog Day (next): February 02, 2026 (148 days)
  • April Fool's Day (next): April 01, 2026 (206 days)
  • Cinco de Mayo (next): May 05, 2026 (240 days)
  • Talk Like a Pirate Day (next): September 19, 2025 (12 days)
  • Columbus Day - No idea (2nd Monday in October)
  • Crimbo Day (next): December 25, 2025 (109 days)
  • Crimbo Season (next): December 01, 2025 (85 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.