Difference between revisions of "Template:JD-month"

From blackwiki
Jump to navigation Jump to search
imported>Verdy p
m (much faster, more precise, and fully tested formula (see fr:JULIANDAY.DAY for more info))
imported>Verdy p
m (Now this template is compatible)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#expr:(((((({{{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)mod 12+1}}</includeonly><noinclude>
+
#REDIRECT [[Template:JULIANDAY.MONTH]]
 
 
This template takes a [[Julian date]] and returns the month number.  For example, the current month number is <nowiki>{{JD-month|{{JD}}}}</nowiki> = {{JD-month|{{JD}}}}.  This template only works for dates after October 1582.
 
 
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
[[Category:Date math]]
 
 
 
[[fr:Modèle:JULIANDAY.MONTH]]
 
</noinclude>
 

Latest revision as of 13:47, 3 May 2006