Template:JULIANDAY.TIMESTAMP/doc
外观
![]() | 此頁面是Template:JULIANDAY.TIMESTAMP的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
![]() | 此Template文档被引用於許多頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
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: 五. 2009-01-02
- Usage: {{#time: l, j F Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}
- Output: 星期五, 2 1月 2009
- Usage: {{uc:{{#time: j M Y | {{JULIANDAY.TIMESTAMP|2454834.086875}} }}}}
- Output: 2 1月 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 1月 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