.
Template:JULIANDAY/doc
Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
Error creating thumbnail: Unable to save thumbnail to destination
|
This is a documentation subpage for JULIANDAY/doc (see that page for the template or article itself). It contains usage information, categories, interlanguage links and other content that is not part of the original page. |
---|
This template computes the number of the Julian day starting at noon on the date given in parameter (in the Gregorian calendar, without any Julian correction for proleptic Gregorian dates where the calendar was not effectively applied).
The result is valid for all proleptic Gregorian calendar dates starting on March 1, 4801 BC at midnight.
- Syntax:
- {{JULIANDAY|year|[month]|[day]|[hour]|[minute]|[second]}}
- The year (required) must be astronomical (year=1 in 1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).
- The month (optional, default value 1) is expressed between 1 and 12 from January to December (but offsets are possible for computing other years).
- The year and month are first converted into a number of months, then rounded to the nearest integer to compute the actual year and month used for computing dates.
- The day (optional, default value 1) is normally between 1 and 31 (but offsets are possible for computing other months). Decimals are possible for fractions of day.
- The hour (optional, default value 12) is normally between 0 and 23 (but offsets are possible for computing other days). Note that Julian days begin at noon (hour = 12) and thus hours 0-11 of a solar day are one Julian day earlier than hours 12-23. The value may extend outside of the normal range and is considered as additional number of julian days (a Julian day is 24 hours or 86400 seconds exactly, ignoring any adjustment of leap seconds within the UTC calendar). Decimals are possible for fractions of hour.
- The minute and second (optional, default value 0) are normally between 0 and 59 (but offsets are possible for computing other hours). Decimals are possible for fractions of minute or second.
- All parameters can be any valid numeric expression which is evaluated before computing.
- Note:
- The julian day, when computed modulo 7, grows from 0 (on Monday at noon) to 6 (on Sunday at noon)) and falls back to 0 (on next Monday). This corresponds to the order of days in the ISO week.
- Examples:
- {{JULIANDAY|-4800|2|29|23|59|59}} returns {{#if:-4800|{{#expr:((((-4800)*12+(2)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4800)*12+(2)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4800)*12+(2)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((2)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(29)+(23)/24+(59)/1440+(59)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4801 BC), last Gregorian date where the result is false (the returned JD is too large by 365 days)
- {{JULIANDAY|-4800|3|1|0|0|0}} returns {{#if:-4800|{{#expr:((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(0)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4801 BC), first Gregorian date where the result is correct
- {{JULIANDAY|-4800|3|1}} returns {{#if:-4800|{{#expr:((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4801 BC), same date at noon
- {{JULIANDAY|-4800|3|2}} returns {{#if:-4800|{{#expr:((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4800)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(2)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4714 BC), tests the 1 day increment
- {{JULIANDAY|-4713|11|24}} returns {{#if:-4713|{{#expr:((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((11)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(24)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4714 BC)
- {{JULIANDAY|-4713|11|25}} returns {{#if:-4713|{{#expr:((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((-4713)*12+(11)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((11)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(25)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 4714 BC)
- {{JULIANDAY|0|1|1}} returns {{#if:0|{{#expr:((((0)*12+(1)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((0)*12+(1)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((0)*12+(1)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((1)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (in year 1 BC)
- {{JULIANDAY|0|12|25}} returns {{#if:0|{{#expr:((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(25)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic)
- {{JULIANDAY|0|12|30}} returns {{#if:0|{{#expr:((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (Julian Anno Domini, first day in proleptic Julian year 1 AD, or December 30 in proleptic Gregorian year 1 BC)
- {{JULIANDAY|0|12|31}} returns {{#if:0|{{#expr:((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((0)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic)
- {{JULIANDAY|1|1|1}} returns {{#if:1|{{#expr:((((1)*12+(1)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1)*12+(1)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1)*12+(1)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((1)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (Gregorian Anno Domini, in proleptic Gregorian year 1 AD, or January 3 in proleptic Julian year 1 AD)
- {{JULIANDAY|200|2|28}} returns {{#if:200|{{#expr:((((200)*12+(2)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((200)*12+(2)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((200)*12+(2)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((2)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(28)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (last day of Julian leap year 200 AD, not leap in the proleptic Gregorian calendar)
- {{JULIANDAY|200|3|1}} returns {{#if:200|{{#expr:((((200)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((200)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((200)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (first day where the Julian and proleptic Gregorian calendars are equivalent)
- {{JULIANDAY|300|2|28}} returns {{#if:300|{{#expr:((((300)*12+(2)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((300)*12+(2)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((300)*12+(2)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((2)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(28)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (last day where the Julian and proleptic Gregorian calendars are equivalent)
- {{JULIANDAY|300|3|1}} returns {{#if:300|{{#expr:((((300)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((300)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((300)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (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)
- {{JULIANDAY|325|3|21}} returns {{#if:325|{{#expr:((((325)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((325)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((325)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(21)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (spring equinox observed at the Christian First Council of Nicaea, taken as a reference for aligning the Julian calendar to the proleptic Gregorian)
- {{JULIANDAY|1782|10|14}} returns {{#if:1782|{{#expr:((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((10)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(14)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (proleptic) (last proleptic Gregorian day, actually the 4th of October in the Julian calendar)
- {{JULIANDAY|1782|10|15}} returns {{#if:1782|{{#expr:((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1782)*12+(10)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((10)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(15)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (first non proleptic Gregorian day, equals the 5th of October in the previous Julian calendar)
- {{JULIANDAY|1858|11|16|12|00|00}} returns {{#if:1858|{{#expr:((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((11)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(16)+(12)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}} (start of epoch for the Reduced Julian Day, RJD)
- {{JULIANDAY|1858|11|17|00|00|00}} returns {{#if:1858|{{#expr:((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1858)*12+(11)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((11)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(17)+(00)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}} (start of epoch for the Modified Julian Day, MJD)
- {{JULIANDAY|1968|05|24|00|00|00}} returns {{#if:1968|{{#expr:((((1968)*12+(05)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1968)*12+(05)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1968)*12+(05)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((05)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(24)+(00)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}} (start of epoch for the NASA's Truncated Julian Day, TJD)
- {{JULIANDAY|1995|10|10|00|00|00}} returns {{#if:1995|{{#expr:((((1995)*12+(10)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1995)*12+(10)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1995)*12+(10)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((10)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(10)+(00)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}} (start of epoch for the current NIST's Truncated Julian Day, TJD mod 10000)
- {{JULIANDAY|1999|12|31}} returns {{#if:1999|{{#expr:((((1999)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((1999)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((1999)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2000|1|1}} returns {{#if:2000|{{#expr:((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((1)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (the “Y2K bug's day” and millennium celebrations)
- {{JULIANDAY|2000|1|2}} returns {{#if:2000|{{#expr:((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2000)*12+(1)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((1)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(2)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2000|2|1}} returns {{#if:2000|{{#expr:((((2000)*12+(2)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2000)*12+(2)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2000)*12+(2)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((2)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2000|3|1}} returns {{#if:2000|{{#expr:((((2000)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2000)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2000)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2000|12|31}} returns {{#if:2000|{{#expr:((((2000)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2000)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2000)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (last day of the 2nd millennium and of the 20th century in the Gregorian calendar)
- {{JULIANDAY|2001|1|1}} returns {{#if:2001|{{#expr:((((2001)*12+(1)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2001)*12+(1)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2001)*12+(1)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((1)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}} (first day of the 3rd millennium and of the 21st century in the Gregorian calendar)
- {{JULIANDAY|2001|12|31}} returns {{#if:2001|{{#expr:((((2001)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2001)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2001)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2002|12|31}} returns {{#if:2002|{{#expr:((((2002)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2002)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2002)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2003|12|31}} returns {{#if:2003|{{#expr:((((2003)*12+(12)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2003)*12+(12)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2003)*12+(12)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((12)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|2|1}} returns {{#if:2006|{{#expr:((((2006)*12+(2)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(2)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(2)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((2)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|3|1}} returns {{#if:2006|{{#expr:((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|3|31}} returns {{#if:2006|{{#expr:((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(3)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((3)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(31)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30|0|0|0}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(0)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30|01|35|48}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(01)/24+(35)/1440+(48)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30|11|59|60}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(11)/24+(59)/1440+(60)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30|12.0}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(12.0)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|4|30|23|59|59}} returns {{#if:2006|{{#expr:((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(4)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((4)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(30)+(23)/24+(59)/1440+(59)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|5|1|00|00|00}} returns {{#if:2006|{{#expr:((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((5)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(00)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|5|1|12|00|00}} returns {{#if:2006|{{#expr:((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((5)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(00)/1440+(00)/86400-32167.5}}|Parameter 1=year required!}}
- {{JULIANDAY|2006|5|1}} returns {{#if:2006|{{#expr:((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+((((2006)*12+(5)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+((((5)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(1)+(12)/24+(0)/1440+(0)/86400-32167.5}}|Parameter 1=year required!}}
- See also:
- Template:JULIANDAY.JULIAN (version taking a date in the Julian calendar)
- Template:JD (automatic Julian or Gregorian calendar determination)
- Template:JULIANDAY.YEAR (returns the year from a JD, in the Gregorian calendar)
- Template:JULIANDAY.MONTH (returns the month from a JD, in the Gregorian calendar)
- Template:JULIANDAY.DAY (returns the day of month from a JD, in the Gregorian calendar)
- Template:JULIANDAY.HOUR (returns the hour from a JD)
- Template:JULIANDAY.MINUTE (returns the minute from a JD)
- Template:JULIANDAY.SECOND (returns the second from a JD)
- Template:YEARCC
- Template:YEARYY
- Template:CENTURY
- Template:IsLeapYear
- Template:WEEKDAY
- Template:ISOYEAR
- Template:CURRENTJULIANDAY