This template is used on approximately 2,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
This template takes a julian day number and returns the associated day of month within the Gregorian calendar.
{{#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-
(((((((({{{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)+2
)*153/5+0.5 round 0)+489
}}