Difference between revisions of "Template:ACKsessionDayOfMonth"

From Hackerspace ACKspace
Jump to: navigation, search
(Add insult to current magic: Showdate for the second to last Saturday (on odd months) or Sunday (on even months))
 
m (Moved from second to last to last last saturday)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>:Shows the second to last Saturday (on odd months) or Sunday (on even months):
+
<noinclude>:Shows the second to last Saturday:
:</noinclude>{{#ifexpr: {{CURRENTMONTH}} mod 2 = 1
+
:</noinclude>{{#ifexpr:
|{{NthDayOfMonth|nth=-1}}
+
{{#time: U |
|{{NthDayOfMonth|nth=-1|day=0}}
+
    {{NthDayOfMonth|nth=0}}
 +
}}
 +
>
 +
{{#time: U | now }}
 +
| {{NthDayOfMonth|nth=0}}
 +
| {{NthDayOfMonth|nth=0|month={{#time: m|now + 4 weeks}}|year={{#time: Y|now + 4 weeks}}}}
 
}}
 
}}

Latest revision as of 08:43, 3 April 2023

Shows the second to last Saturday:
25-05-2024