Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Computing formula (partially indented)  





2 Examples with a non-leap secular year (of rank 3)   





3 Examples with a leap secular year (of rank 4)   





4 Examples with a non-leap non-secular year (of rank 1)   





5 Examples with a non-leap non-secular year (of rank 2)   





6 Examples with a non-leap non-secular year (of rank 3)   





7 Examples with a leap non-secular year (of rank 4)   





8 See also   














Template:JULIANDAY.YEAR






Alemannisch
العربية

Azərbaycanca


Boarisch
Deutsch
Euskara
فارسی
Français

La .lojban.
Magyar


ି
Plattdüütsch
Română
Scots
Simple English
Slovenčina
Tagalog

اردو

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


This template takes a julian day number and returns the associated year number within the Gregorian calendar.

Computing formula (partially indented)

For more information about how this formula works, see Julian day.
{{#expr:
   (   (({{{1}}})+32044 round 0)     / 146097         + 0.5 round 0)                      * 400
+
  ((   (({{{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}}

Examples with a non-leap secular year (of rank 3) 

Examples with a leap secular year (of rank 4) 

Examples with a non-leap non-secular year (of rank 1) 

Examples with a non-leap non-secular year (of rank 2) 

Examples with a non-leap non-secular year (of rank 3) 

Examples with a leap non-secular year (of rank 4) 

See also 


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:JULIANDAY.YEAR&oldid=866264340"

Category: 
Date-computing templates
Hidden category: 
Wikipedia semi-protected templates
 



This page was last edited on 29 October 2018, at 09:09 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki