Open main menu

Changes

→‎See also: add link
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

This template takes a [[Julian day]] number and returns the date and time in same format generated by <nowiki>{{CURRENTTIMESTAMP}}</nowiki> [[Help:Magic words|magic word]]. The output of this template can then be formatted via the <nowiki>{{#time:}}</nowiki> [[Help:ParserFunctions|parser function]], which does not directly accept Julian day numbers.

== Usage ==
* Usage: <nowiki>{{JULIANDAY.TIMESTAMP|2454834.086875}}</nowiki>
* Output: {{JULIANDAY.TIMESTAMP|2454834.086875}}

=== Formatting: date only ===
* Usage: <nowiki>{{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki>
* Output: {{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}

* Usage: <nowiki>{{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki>
* Output: {{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}

* Usage: <nowiki>{{uc:{{#time: j M Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}}}</nowiki>
* Output: {{uc:{{#time: j M Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}}}

=== Formatting: date and time ===
* Usage: <nowiki>{{#time: Y-m-d H:i:s | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki>
* Output: {{#time: Y-m-d H:i:s | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}

* Usage: <nowiki>{{#time: j F Y, g:i:s a | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki>
* Output: {{#time: j F Y, g:i:s a | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}

== See also ==
* [[mw:Help: Magic words #Date & time]]
* [[mw:Help: Extension:ParserFunctions ##time:]]
* [[Wikipedia: Date math]]
* [[Template:JULIANDAY]]
* [[Template:JULIANDAY.JULIAN]]
* [[Template:JD]]
* [[Template:JULIANDAY.YEAR]]
* [[Template:JULIANDAY.MONTH]]
* [[Template:JULIANDAY.MONTHABBREV]]
* [[Template:JULIANDAY.MONTHNAME]]
* [[Template:JULIANDAY.DAY]]
* [[Template:JULIANDAY.HOUR]]
* [[Template:JULIANDAY.MINUTE]]
* [[Template:JULIANDAY.SECOND]]
* [[Template:CURRENTJULIANDAY]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Date-computing templates|{{PAGENAME}}]]

</includeonly>
Anonymous user