Template:JULIANDAY: Difference between revisions

From Vigyanwiki
Template>Johnuniq
(use Module:Age for greater consistency between age templates and ability to detect invalid dates, discussed at Module talk:Age)
Template>Johnuniq
(Undid revision 846341445 by Johnuniq (talk) the error checking performed by the module is causing errors in articles; will investigate)
Line 1: Line 1:
<includeonly>{{#invoke:age|JULIANDAY}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#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>{{Documentation}}
</noinclude>

Revision as of 11:11, 18 June 2018

Template documentation