Difference between revisions of "Template:DATE"

From Culture.si
Line 1: Line 1:
{{#expr:
+
<noinclude>{{pp-template}}</noinclude><includeonly>{{{{{subst|}}}#if:{{{1|}}}|{{{{{subst|}}}#expr:(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+(((({{{2|1}}})+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+({{{3|1}}})+({{{4|12}}})/24+({{{5|0}}})/1440+({{{6|0}}})/86400-32167.5}}|Parameter 1=''year'' required!}}</includeonly><noinclude>{{template doc}}
  ((({{{1}}})+32044 round 0)/146097+0.5 round 0)*400+
+
</noinclude>
  (((({{{1}}})+32044 round 0)mod 146097/36524+0.5 round 0)*3/4+0.5 round 0)*100+
 
  (((({{{1}}})+32044 round 0)mod 146097+36524-
 
  (((({{{1}}})+32044 round 0)mod 146097/36524+0.5 round 0)*3/4+0.5 round 0)*36524
 
  )/1461+0.5 round 0)*4+
 
((((({{{1}}})+32044 round 0)mod 146097+36524-
 
  (((({{{1}}})+32044 round 0)mod 146097/36524+0.5 round 0)*3/4+0.5 round 0)*36524
 
  )mod 1461/365+0.5 round 0)*3/4+0.5 round 0)+
 
(((((({{{1}}})+32044 round 0)mod 146097+36524-
 
  (((({{{1}}})+32044 round 0)mod 146097/36524+0.5 round 0)*3/4+0.5 round 0)*36524
 
  )mod 1461-
 
((((({{{1}}})+32044 round 0)mod 146097+36524-
 
  (((({{{1}}})+32044 round 0)mod 146097/36524+0.5 round 0)*3/4+0.5 round 0)*36524
 
  )mod 1461/365+0.5 round 0)*3/4+0.5 round 0)*365+365)*5+308)/153-0.5 round 0)
 
  /12-5305.5 round 0
 
}}
 

Revision as of 02:26, 24 September 2010