Template:Weekday in month/calc: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
   |{{#expr:7*{{{n}}}-6+(7+{{{w}}}-{{#time:w|1 {{{m}}}}})mod7}}
   |{{#expr:7*{{{n}}}-6+(7+{{{w}}}-{{#time:w|1 {{{m}}}}})mod7}}
   |{{#expr:{{#time:t|{{{m}}}}}+7*({{{n}}}+1)-(7-{{{w}}}+{{#time:w|{{#time:t|{{{m}}}}} {{{m}}}}})mod7}}
   |{{#expr:{{#time:t|{{{m}}}}}+7*({{{n}}}+1)-(7-{{{w}}}+{{#time:w|{{#time:t|{{{m}}}}} {{{m}}}}})mod7}}
}}</includeonly><noinclude>This subtemplate calculates the day of the month of the ''n''th (or −''n''th last) ''w''-day in the month ''m''.</noinclude>
}}</includeonly><noinclude>
{{doc|content=
This subtemplate calculates the day of the month of the ''n''th (or −''n''th last) ''w''-day in the month ''m''.
}}
</noinclude>

Latest revision as of 15:58, 9 February 2014

Documentation icon Template documentation

This subtemplate calculates the day of the month of the nth (or −nth last) w-day in the month m.