Difference between revisions of "Template:JULIANDAY.TIMESTAMP/doc"
Jump to navigation
Jump to search
imported>Zyxw (new template documentation) |
imported>Zyxw (→Formatting: date only: update examples) |
||
Line 9: | Line 9: | ||
=== Formatting: date only === | === Formatting: date only === | ||
− | * Usage: <nowiki>{{#time: Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki> | + | * Usage: <nowiki>{{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki> |
− | * Output: {{#time: Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }} | + | * Output: {{#time: D. Y-m-d | {{JULIANDAY.TIMESTAMP|2454834.086875}} }} |
− | * Usage: <nowiki>{{#time: j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki> | + | * Usage: <nowiki>{{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}</nowiki> |
− | * Output: {{#time: j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }} | + | * 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 === | === Formatting: date and time === |
Revision as of 06:43, 21 August 2009
![]() | This is a documentation subpage for Template:JULIANDAY.TIMESTAMP. It contains usage information, categories and other content that is not part of the original template page. |
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
- mw:Help: Magic words #Date & time
- mw:Help: Extension:ParserFunctions ##time:
- 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