Difference between revisions of "Template:JDtoGreg"
Jump to navigation
Jump to search
imported>Verdy p m (there's no more calc function embedded now, uses the basic template syntax) |
imported>Verdy p m |
||
| Line 1: | Line 1: | ||
| − | <includeonly>[[{{WEEKDAYNAME|{{{1}}}}}]], [[{{JULIANDAY.MONTHNAME|{{{1}}}}} {{JULIANDAY.DAY|{{{1}}}}}|{{JULIANDAY.DAY|{{{1}}}}} {{JULIANDAY.MONTHNAME|{{{1}}}}}]] [[{{JULIANDAY.YEAR|{{{1}}}}}]] {{JULIANDAY.HOUR|{{{1}}}}}:{{JULIANDAY.MINUTE|{{{1}}}}}</includeonly><noinclude> | + | <includeonly>[[{{WEEKDAYNAME|{{{1}}}}}]], [[{{JULIANDAY.MONTHNAME|{{{1}}}}} {{JULIANDAY.DAY|{{{1}}}}}|{{JULIANDAY.DAY|{{{1}}}}} {{JULIANDAY.MONTHNAME|{{{1}}}}}]] [[{{JULIANDAY.YEAR|{{{1}}}}}]] {{JULIANDAY.HOUR|{{{1}}}}}:{{JULIANDAY.MINUTE|{{{1}}}}}</includeonly><noinclude>{{Template documentation}} |
| − | + | Format a [[Julian day]] timestamp to the complete English date and time in the [[Gregorian calendar]] with links. | |
| − | + | ; Syntax<nowiki>:</nowiki> | |
| + | : <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''julian day number''<tt><nowiki>}}</nowiki></tt> | ||
| + | * The ''julian day number'' is an integer at noon (12:00:00), the same UTC day starts at the ''julian day number'' minus 0.5. | ||
| + | ; Example<nowiki>:</nowiki> | ||
| + | * “<tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|{{CURRENTJULIANDAY}}}}</nowiki></tt>” returns “{{JDtoGreg|{{CURRENTJULIANDAY}}}}” | ||
| + | |||
| + | ; See also<nowiki>:</nowiki> | ||
| + | * [[Template:JULIANDAY]] | ||
| + | * [[Template:JULIANDAY.YEAR]] | ||
| + | * [[Template:JULIANDAY.MONTHNAME]] | ||
| + | * [[Template:JULIANDAY.DAY]] | ||
| + | * [[Template:WEEKDAYNAME]] | ||
| + | * [[Template:CURRENTJULIANDAY]] | ||
| + | |||
| + | [[Category:Date math|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 20:16, 6 May 2006
Template:Template documentation
Format a Julian day timestamp to the complete English date and time in the Gregorian calendar with links.
- Syntax:
- {{JDtoGreg|julian day number}}
- The julian day number is an integer at noon (12:00:00), the same UTC day starts at the julian day number minus 0.5.
- Example:
- “{{JDtoGreg|{{CURRENTJULIANDAY}}}}” returns “[[Template:WEEKDAYNAME]], 20 April 2026 Expression error: Unrecognized punctuation character "[".Template:Mod:Expression error: Unrecognized punctuation character "[".Template:Mod”
- See also: