Calendar: Difference between revisions

m
→‎{{header|WYLBUR}}: description edit
m (→‎{{header|WYLBUR}}: formatting edit)
m (→‎{{header|WYLBUR}}: description edit)
Line 8,298:
A month appears as numbers (Roman numerals for leap years) below a column of dates which are defined as "Key Dates" for the corresponding months. A Key Day is the day of the week on which Key Dates occur in a calendar year. Step A describes how to find the Key Day, which is used in Step B to display a calendar just by sliding the columns of dates in the lower output window. In WYLBUR, one slides the row of weekdays instead by inserting or deleting spaces to the left of "Su" (and vastly easier to align than here using html).
 
A. Calculate the Key Day: for a given date in the Gregorian calendar, calculate the day on which its Key Dates occur using ([YT32 div 16]+ YTMB div 4 + Year) mod 7. (YTMB = the Year Two Months Before the given date. For Julian & Old Style dates, omit the [~YT32...] term where the last 2 digits of YTMB are replaced by 32.) The remainder of the division by 7 gives the Key Day as follows: 0=Su -> 6=Sa
 
B. Display the calendar for November: slide the columns so that 28 rests under the Key Day thereby showing the calendar for November. One has as well the calendar for the prior March corresponding to the type of Calendar as listed in the Month Key.