Module:DayCalc/doc

From electowiki

This is the documentation page for Module:DayCalc

Documentation for DayCalc

DayCalc may evolve into many day/date functions. Right now, it has a case of the Tuesdays.

Examples:

get_next_tuesday

  1. Returns the next Tuesday if today is not Tuesday, otherwise returns today's date.
    • wikitext: {{#invoke:DayCalc|get_next_tuesday}}
    • result: May 21, 2024
  2. Returns the next Tuesday if today is not Tuesday, otherwise returns today's date (ISO format)
    • wikitext: {{#invoke:DayCalc|get_next_tuesday|isodate=true}}
    • result: 2024-05-21

get_first_coming_tuesday_of_month

  1. Returns the first upcoming Tuesday which is the first Tuesday of a month.
    • wikitext: {{#invoke:DayCalc|get_first_coming_tuesday_of_month}}
    • result: June 4, 2024
  2. Returns the first upcoming Tuesday which is the first Tuesday of a month (ISO format)
    • wikitext: {{#invoke:DayCalc|get_first_coming_tuesday_of_month|isodate=true}}
    • result: 2024-06-04