• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:JULIANDAY.TIMESTAMP

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

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.

Contents

  • 1 Usage
    • 1.1 Formatting: date only
    • 1.2 Formatting: date and time
  • 2 See also

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

  • 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
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.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:JULIANDAY.TIMESTAMP&oldid=20816"
Category:
  • Date-computing templates
Last edited on 9 October 2017, at 12:16

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 9 October 2017, at 12:16.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop