Editing Template:JULIANDAY/doc

From Hattrick

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 17: Line 17:
  
 
; Examples<nowiki>:</nowiki>
 
; Examples<nowiki>:</nowiki>
* <tt><nowiki>{{JULIANDAY|-4800|2|29|23|59|59}}</nowiki></tt> returns {{JULIANDAY|-4800|2|29|23|59|59}} (''proleptic'') (in ''year 4801 BC''), last Gregorian date where the result is '''false''' (the returned JD is too large by 365 days)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4800|2|29|23|59|59}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4800|2|29|23|59|59}} (''proleptic'') (in ''year 4801 BC''), last Gregorian date where the result is '''false''' (the returned JD is too large by 365 days)
* <tt><nowiki>{{JULIANDAY|-4800|3|1|0|0|0}}</nowiki></tt> returns {{JULIANDAY|-4800|3|1|0|0|0}} (''proleptic'') (in ''year 4801 BC''), first Gregorian date where the result is correct
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4800|3|1|0|0|0}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4800|3|1|0|0|0}} (''proleptic'') (in ''year 4801 BC''), first Gregorian date where the result is correct
* <tt><nowiki>{{JULIANDAY|-4800|3|1}}</nowiki></tt> returns {{JULIANDAY|-4800|3|1}} (''proleptic'') (in ''year 4801 BC''), same date at noon
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4800|3|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4800|3|1}} (''proleptic'') (in ''year 4801 BC''), same date at noon
* <tt><nowiki>{{JULIANDAY|-4800|3|2}}</nowiki></tt> returns {{JULIANDAY|-4800|3|2}} (''proleptic'') (in ''year 4714 BC''), tests the 1 day increment
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4800|3|2}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4800|3|2}} (''proleptic'') (in ''year 4714 BC''), tests the 1 day increment
* <tt><nowiki>{{JULIANDAY|-4713|11|24}}</nowiki></tt> returns {{JULIANDAY|-4713|11|24}} (''proleptic'') (in ''year 4714 BC'')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4713|11|24}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4713|11|24}} (''proleptic'') (in ''year 4714 BC'')
* <tt><nowiki>{{JULIANDAY|-4713|11|25}}</nowiki></tt> returns {{JULIANDAY|-4713|11|25}} (''proleptic'') (in ''year 4714 BC'')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|-4713|11|25}}</nowiki></tt> returns {{{{BASEPAGENAME}}|-4713|11|25}} (''proleptic'') (in ''year 4714 BC'')
* <tt><nowiki>{{JULIANDAY|0|1|1}}</nowiki></tt> returns {{JULIANDAY|0|1|1}} (''proleptic'') (in ''year 1 BC'')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0|1|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|0|1|1}} (''proleptic'') (in ''year 1 BC'')
* <tt><nowiki>{{JULIANDAY|0|12|25}}</nowiki></tt> returns {{JULIANDAY|0|12|25}} (''proleptic'')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0|12|25}}</nowiki></tt> returns {{{{BASEPAGENAME}}|0|12|25}} (''proleptic'')
* <tt><nowiki>{{JULIANDAY|0|12|30}}</nowiki></tt> returns {{JULIANDAY|0|12|30}} (''proleptic'') (Julian ''[[Anno Domini]]'', first day in proleptic Julian year 1 AD, or December 30 in proleptic Gregorian year 1 BC)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0|12|30}}</nowiki></tt> returns {{{{BASEPAGENAME}}|0|12|30}} (''proleptic'') (Julian ''[[Anno Domini]]'', first day in proleptic Julian year 1 AD, or December 30 in proleptic Gregorian year 1 BC)
* <tt><nowiki>{{JULIANDAY|0|12|31}}</nowiki></tt> returns {{JULIANDAY|0|12|31}} (''proleptic'')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|0|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|0|12|31}} (''proleptic'')
* <tt><nowiki>{{JULIANDAY|1|1|1}}</nowiki></tt> returns {{JULIANDAY|1|1|1}} (''proleptic'') (Gregorian ''[[Anno Domini]]'', in proleptic Gregorian year 1 AD, or January 3 in proleptic Julian year 1 AD)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1|1|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1|1|1}} (''proleptic'') (Gregorian ''[[Anno Domini]]'', in proleptic Gregorian year 1 AD, or January 3 in proleptic Julian year 1 AD)
* <tt><nowiki>{{JULIANDAY|200|2|28}}</nowiki></tt> returns {{JULIANDAY|200|2|28}} (''proleptic'') (last day of Julian leap year 200 AD, not leap in the proleptic Gregorian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|200|2|28}}</nowiki></tt> returns {{{{BASEPAGENAME}}|200|2|28}} (''proleptic'') (last day of Julian leap year 200 AD, not leap in the proleptic Gregorian calendar)
* <tt><nowiki>{{JULIANDAY|200|3|1}}</nowiki></tt> returns {{JULIANDAY|200|3|1}} (''proleptic'') (first day where the Julian and proleptic Gregorian calendars are '''equivalent''')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|200|3|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|200|3|1}} (''proleptic'') (first day where the Julian and proleptic Gregorian calendars are '''equivalent''')
* <tt><nowiki>{{JULIANDAY|300|2|28}}</nowiki></tt> returns {{JULIANDAY|300|2|28}} (''proleptic'') (last day where the Julian and proleptic Gregorian calendars are '''equivalent''')
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|300|2|28}}</nowiki></tt> returns {{{{BASEPAGENAME}}|300|2|28}} (''proleptic'') (last day where the Julian and proleptic Gregorian calendars are '''equivalent''')
* <tt><nowiki>{{JULIANDAY|300|3|1}}</nowiki></tt> returns {{JULIANDAY|300|3|1}} (''proleptic'') (first day of difference between the Julian and proleptic Gregorian calendars, in leap Julian year 300 AD, not leap in the proleptic Gregorian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|300|3|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|300|3|1}} (''proleptic'') (first day of difference between the Julian and proleptic Gregorian calendars, in leap Julian year 300 AD, not leap in the proleptic Gregorian calendar)
* <tt><nowiki>{{JULIANDAY|325|3|21}}</nowiki></tt> returns {{JULIANDAY|325|3|21}} (''proleptic'') (spring equinox observed at the Christian [[First Council of Nicaea]], taken as a reference for aligning the Julian calendar to the proleptic Gregorian)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|325|3|21}}</nowiki></tt> returns {{{{BASEPAGENAME}}|325|3|21}} (''proleptic'') (spring equinox observed at the Christian [[First Council of Nicaea]], taken as a reference for aligning the Julian calendar to the proleptic Gregorian)
* <tt><nowiki>{{JULIANDAY|1782|10|14}}</nowiki></tt> returns {{JULIANDAY|1782|10|14}} (''proleptic'') (last proleptic Gregorian day, actually the 4th of October in the Julian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1782|10|14}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1782|10|14}} (''proleptic'') (last proleptic Gregorian day, actually the 4th of October in the Julian calendar)
* <tt><nowiki>{{JULIANDAY|1782|10|15}}</nowiki></tt> returns {{JULIANDAY|1782|10|15}} (first non proleptic Gregorian day, equals the 5th of October in the previous Julian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1782|10|15}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1782|10|15}} (first non proleptic Gregorian day, equals the 5th of October in the previous Julian calendar)
* <tt><nowiki>{{JULIANDAY|1858|11|16|12|00|00}}</nowiki></tt> returns {{JULIANDAY|1858|11|16|12|00|00}} (start of epoch for the [[Julian day#Alternatives|Reduced Julian Day]], RJD)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1858|11|16|12|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1858|11|16|12|00|00}} (start of epoch for the [[Julian day#Alternatives|Reduced Julian Day]], RJD)
* <tt><nowiki>{{JULIANDAY|1858|11|17|00|00|00}}</nowiki></tt> returns {{JULIANDAY|1858|11|17|00|00|00}} (start of epoch for the [[Julian day#Alternatives|Modified Julian Day]], MJD)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1858|11|17|00|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1858|11|17|00|00|00}} (start of epoch for the [[Julian day#Alternatives|Modified Julian Day]], MJD)
* <tt><nowiki>{{JULIANDAY|1968|05|24|00|00|00}}</nowiki></tt> returns {{JULIANDAY|1968|05|24|00|00|00}} (start of epoch for the [[NASA]]'s [[Julian day#Alternatives|Truncated Julian Day]], TJD)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1968|05|24|00|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1968|05|24|00|00|00}} (start of epoch for the [[NASA]]'s [[Julian day#Alternatives|Truncated Julian Day]], TJD)
* <tt><nowiki>{{JULIANDAY|1995|10|10|00|00|00}}</nowiki></tt> returns {{JULIANDAY|1995|10|10|00|00|00}} (start of epoch for the current [[National Institute of Standards and Technology|NIST]]'s [[Julian day#Alternatives|Truncated Julian Day]], TJD mod 10000)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1995|10|10|00|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1995|10|10|00|00|00}} (start of epoch for the current [[National Institute of Standards and Technology|NIST]]'s [[Julian day#Alternatives|Truncated Julian Day]], TJD mod 10000)
* <tt><nowiki>{{JULIANDAY|1999|12|31}}</nowiki></tt> returns {{JULIANDAY|1999|12|31}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1999|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|1999|12|31}}
* <tt><nowiki>{{JULIANDAY|2000|1|1}}</nowiki></tt> returns {{JULIANDAY|2000|1|1}} (the “[[Year 2000 problem|Y2K bug]]'s day” and millennium celebrations)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2000|1|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2000|1|1}} (the “[[Year 2000 problem|Y2K bug]]'s day” and millennium celebrations)
* <tt><nowiki>{{JULIANDAY|2000|1|2}}</nowiki></tt> returns {{JULIANDAY|2000|1|2}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2000|1|2}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2000|1|2}}
* <tt><nowiki>{{JULIANDAY|2000|2|1}}</nowiki></tt> returns {{JULIANDAY|2000|2|1}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2000|2|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2000|2|1}}
* <tt><nowiki>{{JULIANDAY|2000|3|1}}</nowiki></tt> returns {{JULIANDAY|2000|3|1}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2000|3|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2000|3|1}}
* <tt><nowiki>{{JULIANDAY|2000|12|31}}</nowiki></tt> returns {{JULIANDAY|2000|12|31}} (last day of the [[2nd millennium]] and of the [[w:20th century|20th century]] in the Gregorian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2000|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2000|12|31}} (last day of the [[2nd millennium]] and of the [[w:20th century|20th century]] in the Gregorian calendar)
* <tt><nowiki>{{JULIANDAY|2001|1|1}}</nowiki></tt> returns {{JULIANDAY|2001|1|1}} (first day of the [[3rd millennium]] and of the [[w:21st century|21st century]] in the Gregorian calendar)
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2001|1|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2001|1|1}} (first day of the [[3rd millennium]] and of the [[w:21st century|21st century]] in the Gregorian calendar)
* <tt><nowiki>{{JULIANDAY|2001|12|31}}</nowiki></tt> returns {{JULIANDAY|2001|12|31}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2001|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2001|12|31}}
* <tt><nowiki>{{JULIANDAY|2002|12|31}}</nowiki></tt> returns {{JULIANDAY|2002|12|31}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2002|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2002|12|31}}
* <tt><nowiki>{{JULIANDAY|2003|12|31}}</nowiki></tt> returns {{JULIANDAY|2003|12|31}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2003|12|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2003|12|31}}
* <tt><nowiki>{{JULIANDAY|2006|2|1}}</nowiki></tt> returns {{JULIANDAY|2006|2|1}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|2|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|2|1}}
* <tt><nowiki>{{JULIANDAY|2006|3|1}}</nowiki></tt> returns {{JULIANDAY|2006|3|1}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|3|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|3|1}}
* <tt><nowiki>{{JULIANDAY|2006|3|31}}</nowiki></tt> returns {{JULIANDAY|2006|3|31}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|3|31}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|3|31}}
* <tt><nowiki>{{JULIANDAY|2006|4|30|0|0|0}}</nowiki></tt> returns {{JULIANDAY|2006|4|30|0|0|0}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30|0|0|0}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30|0|0|0}}
* <tt><nowiki>{{JULIANDAY|2006|4|30|01|35|48}}</nowiki></tt> returns {{JULIANDAY|2006|4|30|01|35|48}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30|01|35|48}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30|01|35|48}}
* <tt><nowiki>{{JULIANDAY|2006|4|30|11|59|60}}</nowiki></tt> returns {{JULIANDAY|2006|4|30|11|59|60}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30|11|59|60}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30|11|59|60}}
* <tt><nowiki>{{JULIANDAY|2006|4|30|12.0}}</nowiki></tt> returns {{JULIANDAY|2006|4|30|12.0}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30|12.0}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30|12.0}}
* <tt><nowiki>{{JULIANDAY|2006|4|30}}</nowiki></tt> returns {{JULIANDAY|2006|4|30}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30}}
* <tt><nowiki>{{JULIANDAY|2006|4|30|23|59|59}}</nowiki></tt> returns {{JULIANDAY|2006|4|30|23|59|59}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|4|30|23|59|59}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|4|30|23|59|59}}
* <tt><nowiki>{{JULIANDAY|2006|5|1|00|00|00}}</nowiki></tt> returns {{JULIANDAY|2006|5|1|00|00|00}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|5|1|00|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|5|1|00|00|00}}
* <tt><nowiki>{{JULIANDAY|2006|5|1|12|00|00}}</nowiki></tt> returns {{JULIANDAY|2006|5|1|12|00|00}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|5|1|12|00|00}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|5|1|12|00|00}}
* <tt><nowiki>{{JULIANDAY|2006|5|1}}</nowiki></tt> returns {{JULIANDAY|2006|5|1}}
+
* <tt><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|2006|5|1}}</nowiki></tt> returns {{{{BASEPAGENAME}}|2006|5|1}}
  
 
<includeonly>
 
<includeonly>
Line 67: Line 67:
  
 
</includeonly>
 
</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
 

Please note that all contributions to Hattrick may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Hattrick:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: