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: July 02, 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: July 02, 2024

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: July 2, 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-07-02