Vorlage:Wochentag

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 3: Zeile 3:
<code><nowiki>{{Wochentag|01|01|1970}}</nowiki></code>
<code><nowiki>{{Wochentag|01|01|1970}}</nowiki></code>
 +
</noinclude><!--
-
{{CURRENTDAYNAME}}, {{CURRENTDAY}}.{{CURRENTMONTH}}.{{CURRENTYEAR}}
+
Differenz in Tagen:
-
{{CURRENTDOW}}
+
-->
-
</noinclude>
+
-
 
+
-
{{IstSchaltjahr|{{{2}}}}}
+
-
 
+
-
<!--Differenz in Tagen (keine Schaltjahre angenommen)-->
+
-
 
+
{{#switch: {{#expr: ({{#switch:{{CURRENTMONTH}}
{{#switch: {{#expr: ({{#switch:{{CURRENTMONTH}}
|01 = 0  
|01 = 0  
Zeile 25: Zeile 20:
|11 = 304
|11 = 304
|12 = 334
|12 = 334
-
}} + {{CURRENTDAY}} + {{CURRENTYEAR}}-{{{3}}} + 364 - {{#switch:{{{2}}}
+
}} + {{CURRENTDAY}}
 +
+ {{CURRENTYEAR}} - {{{3}}}
 +
+ ({{CURRENTYEAR}}-{{CURRENTYEAR}}mod4-{{{3}}}+{{{3}}}mod4)/4
 +
- ({{CURRENTYEAR}}-{{CURRENTYEAR}}mod100-{{{3}}}+{{{3}}}mod100)/100
 +
+ ({{CURRENTYEAR}}-{{CURRENTYEAR}}mod400-{{{3}}}+{{{3}}}mod400)/400
 +
+ 364 - {{#switch: {{{2}}}
|01 = 0  
|01 = 0  
|02 = 31
|02 = 31

Version vom 19:26, 14. Jul. 2006

Verwendung:

{{Wochentag|01|01|1970}}


Persönliche Werkzeuge