Difference between revisions of "Template:JULIANDAY.TIMESTAMP/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎See also: add link)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 41: Line 41:
 
* [[Template:JULIANDAY.SECOND]]
 
* [[Template:JULIANDAY.SECOND]]
 
* [[Template:CURRENTJULIANDAY]]
 
* [[Template:CURRENTJULIANDAY]]
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Date-computing templates|{{PAGENAME}}]]
 
[[Category:Date-computing templates|{{PAGENAME}}]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 23:01, 25 April 2020

This template takes a Julian day number and returns the date and time in same format generated by {{CURRENTTIMESTAMP}} magic word. The output of this template can then be formatted via the {{#time:}} parser function, which does not directly accept Julian day numbers.

Usage

  • Usage: {{JULIANDAY.TIMESTAMP|2454834.086875}}
  • Output: 20090102Expression error: Unrecognized punctuation character "[".Template:ModExpression error: Unrecognized punctuation character "[".Template:ModTemplate:SECOND

Formatting: date only

  • Usage: {{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Error: Invalid time.
  • Usage: {{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Error: Invalid time.
  • Usage: {{uc:{{#time: j M Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}}}
  • Output: ERROR: INVALID TIME.

Formatting: date and time

  • Usage: {{#time: Y-m-d H:i:s | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Error: Invalid time.
  • Usage: {{#time: j F Y, g:i:s a | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Error: Invalid time.

See also