Difference between revisions of "Template:JD"
Jump to navigation
Jump to search
imported>Verdy p m |
imported>Verdy p m |
||
| Line 10: | Line 10: | ||
* Otherwise, all parameters for the date and time must be specified as valid numeric expressions. | * Otherwise, all parameters for the date and time must be specified as valid numeric expressions. | ||
* The default ''day'' and ''month'' are 1. | * The default ''day'' and ''month'' are 1. | ||
| − | * Any date whose computed ''month'' and ''year'' are before | + | * Any date whose computed ''month'' and ''year'' are before October 1582, or are in October 1582 but the ''day'' is before the 15th, will be interpreted as dates in the Julian calendar. |
* The default ''hour'' is 12 (for noon). | * The default ''hour'' is 12 (for noon). | ||
* The default 'minute'' or second is 0. | * The default 'minute'' or second is 0. | ||
Revision as of 07:47, 30 April 2006
Template:Template documentation
This template converts date elements, or date and time elements, into a Julian date timestamp. It interprets all dates starting at 15 October 1582 in the Gregorian calendar, otherwise it uses the Julian calendar that was valid until 04 October 1582.
- Syntax:
- {{JD|year|[month]|[day]|[hour]|[minute]|[second]}}
- {{JD}}
- If the year parameter is missing, all other parameters are ignored, and their default is the current UTC date and time, as set on the server.
- Otherwise, all parameters for the date and time must be specified as valid numeric expressions.
- The default day and month are 1.
- Any date whose computed month and year are before October 1582, or are in October 1582 but the day is before the 15th, will be interpreted as dates in the Julian calendar.
- The default hour is 12 (for noon).
- The default 'minute or second is 0.
- Example:
- It is JD 2461057.34 now.
- See also: