Vorlage:Nächstes Plenum: Unterschied zwischen den Versionen
Eeadc (Diskussion | Beiträge) K (Änderung 10166 von Eeadc (Diskussion) rückgängig gemacht.) Markierung: Rückgängigmachung |
Eeadc (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
Zeile 1: | Zeile 1: | ||
{{#time: {{{1|d.m.Y}}}| {{#switch: {{#time: m | {{#time: {{{1|d.m.Y}}} | {{#switch: {{#time: m}} | {{#ifexpr: {{#time: d}} > {{#time: d| {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} | {{#ifexpr: {{#time: d|third tuesday of first month}} < 20 | fourth tuesday of first month | third tuesday of first month}} | {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} }}}}<noinclude><pre> | ||
$ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo | $ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo | ||
Zeile 13: | Zeile 13: | ||
{{@time: {{{1|d.m.Y}}} | {{@switch: {{@time: m}} | {{@time: {{{1|d.m.Y}}} | {{@switch: {{@time: m}} | ||
| THIS_OR(first month) | | THIS_OR(first month) | ||
}}}} | }}}} | ||
</pre></noinclude> | </pre></noinclude> |
Version vom 29. November 2022, 19:11 Uhr
21.05.2024
$ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo #define TUE(m) {{@ifexpr: \ {{@time: d|third tuesday of m}} < 20 | \ fourth tuesday of m | \ third tuesday of m}} #define THIS_OR(o) {{@ifexpr: \ {{@time: d}} > {{@time: d| TUE(this month)}} | \ TUE(o) | \ TUE(this month)}} {{@time: {{{1|d.m.Y}}} | {{@switch: {{@time: m}} | THIS_OR(first month) }}}}