Jump to content
Wikipedia The Free Encyclopedia

Template:JULIANDAY.TIMESTAMP

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
Warning This template is used on approximately 2,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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: 20090102140506

Formatting: date only

  • Usage: {{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Fri. 2009年01月02日
  • Usage: {{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: Friday, 2 January 2009
  • Usage: {{uc:{{#time: j M Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}}}
  • Output: 2 JAN 2009

Formatting: date and time

  • Usage: {{#time: Y-m-d H:i:s | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: 2009年01月02日 14:05:06
  • Usage: {{#time: j F Y, g:i:s a | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
  • Output: 2 January 2009, 2:05:06 pm

See also

The above documentation is transcluded from Template:JULIANDAY.TIMESTAMP/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.

AltStyle によって変換されたページ (->オリジナル) /