Template>Verdy p |
|
(41 intermediate revisions by 23 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#if:{{{1|}}}|{{#expr:(((({{{1}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-(((({{{1}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+(((({{{1}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+(((({{{2|1}}})+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+({{{3|1}}})+({{{4|12}}})/24+({{{5|0}}})/1440+({{{6|0}}})/86400-32167.5}}|Parameter 1=''year'' required!}}</includeonly><noinclude>{{Template documentation}} | | <includeonly>{{safesubst:<noinclude/>#if:{{{1|}}}|{{safesubst:<noinclude/>#expr:(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0)-(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0)+(((({{{1|}}})*12+({{{2|1}}})+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0)+(((({{{2|1}}})+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+({{{3|1}}})+({{{4|12}}})/24+({{{5|0}}})/1440+({{{6|0}}})/86400-32167.5}}|Parameter 1=''year'' required!}}</includeonly><noinclude>{{Documentation}} |
| 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 years).
| |
| | |
| ; Syntax<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{</nowiki>JULIANDAY|</tt>''year''<tt>|</tt>''[month]''<tt>|</tt>''[day]''<tt>|</tt>''[hour]''<tt>|</tt>''[minute]''<tt>|</tt>''[second]''<tt>}}</tt>
| |
| * The ''year'' (required) must be astronomical (''year''=1 in [[1|1 AD]] (''[[Anno Domini]]''), ''year''=0 in 1 BC, ''year''=-1 in 2 BC). It is rounded to the nearest integer before computing.
| |
| * The ''month'' (optional, default value 1) is expressed between 1 et 12 from january to december (but offsets are possible for computing other years, by converting the value into years and months with a division by 12). It is rounded to the nearest integer before computing.
| |
| * The ''day'' (optional, default value 1) is normally between 1 et 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<nowiki>:</nowiki>
| |
| : 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<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{JULIANDAY|-4713|11|24}}</nowiki></tt> returns {{JULIANDAY|-4713|11|24}} (''an 4714 av. J.-C.'', proleptic)
| |
| : <tt><nowiki>{{JULIANDAY|0|1|1}}</nowiki></tt> returns {{JULIANDAY|0|1|1}} (''an 1 av. J.-C.'', proleptic)
| |
| : <tt><nowiki>{{JULIANDAY|0|12|31}}</nowiki></tt> returns {{JULIANDAY|0|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|1|1|1}}</nowiki></tt> returns {{JULIANDAY|1|1|1}} (''Anno Domini'', proleptic)
| |
| : <tt><nowiki>{{JULIANDAY|1782|10|24}}</nowiki></tt> returns {{JULIANDAY|1782|10|24}} (last proleptic Gregorian day, actually the 4th of october in the Julian calendar)
| |
| : <tt><nowiki>{{JULIANDAY|1782|10|25}}</nowiki></tt> returns {{JULIANDAY|1782|10|25}} (first non proleptic Gregorian day, equals the 5th of october in the previous Julian calendar)
| |
| : <tt><nowiki>{{JULIANDAY|1999|12|31}}</nowiki></tt> returns {{JULIANDAY|1999|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2000|1|1}}</nowiki></tt> returns {{JULIANDAY|2000|1|1}}
| |
| : <tt><nowiki>{{JULIANDAY|2000|1|2}}</nowiki></tt> returns {{JULIANDAY|2000|1|2}}
| |
| : <tt><nowiki>{{JULIANDAY|2000|2|1}}</nowiki></tt> returns {{JULIANDAY|2000|2|1}}
| |
| : <tt><nowiki>{{JULIANDAY|2000|3|1}}</nowiki></tt> returns {{JULIANDAY|2000|3|1}}
| |
| : <tt><nowiki>{{JULIANDAY|2000|12|31}}</nowiki></tt> returns {{JULIANDAY|2000|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2001|12|31}}</nowiki></tt> returns {{JULIANDAY|2001|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2002|12|31}}</nowiki></tt> returns {{JULIANDAY|2002|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2003|12|31}}</nowiki></tt> returns {{JULIANDAY|2003|12|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|2|1}}</nowiki></tt> returns {{JULIANDAY|2006|2|1}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|3|1}}</nowiki></tt> returns {{JULIANDAY|2006|3|1}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|3|31}}</nowiki></tt> returns {{JULIANDAY|2006|3|31}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|4|30|0|0|0}}</nowiki></tt> returns {{JULIANDAY|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>{{JULIANDAY|2006|4|30|11|59|60}}</nowiki></tt> returns {{JULIANDAY|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>{{JULIANDAY|2006|4|30}}</nowiki></tt> returns {{JULIANDAY|2006|4|30}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|4|30|23|59|59}}</nowiki></tt> returns {{JULIANDAY|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>{{JULIANDAY|2006|5|1|12|00|00}}</nowiki></tt> returns {{JULIANDAY|2006|5|1|12|00|00}}
| |
| : <tt><nowiki>{{JULIANDAY|2006|5|1}}</nowiki></tt> returns {{JULIANDAY|2006|5|1}}
| |
| | |
| ; See also<nowiki>:</nowiki>
| |
| : [[Template:YEARCC]]
| |
| : [[Template:YEARYY]]
| |
| : [[Template:CENTURY]]
| |
| : [[Template:ISLEAPYEAR]]
| |
| : [[Template:WEEKDAY]]
| |
| : [[Template:ISOYEAR]]
| |
| : [[Template:CURRENTJULIANDAY]]
| |
| | |
| [[Category:Date computing template|JULIANDAY]]
| |
| | |
| [[fr:Modèle:JULIANDAY]]
| |
| </noinclude> | | </noinclude> |