模板:Gregorian serial date
模板页面
更多语言
更多操作
{{#expr:
+ ((2026 - 1) * 365)
+ (((2026 - 1) - ((2026 - 1) mod 4)) / 4)
- (((2026 - 1) - ((2026 - 1) mod 100)) / 100)
+ (((2026 - 1) - ((2026 - 1) mod 400)) / 400)
+ {{#ifexpr:
(06 - 1) < 8
| ( (06 - 1) * 30.5 round 0)
| ( (06 - 1) * 30.5 + 0.9 round 0 )
}}
- {{#ifexpr: (06 <= 2) | 0 |
{{#ifexpr:
(2026 / 4) = (2026 / 4 round 0)
and (2026 / 100 != 2026 / 100 round 0)
| 1 | 2
}}
}}
+ {{#ifexpr: (06 <= 2) | 0 |
{{#ifexpr:
(2026 / 400) = (2026 / 400 round 0)
| 1 | 0
}}
}}
+ 5
}}{{#ifexpr: 2026 < 1 |
_ERROR - Can not handle dates before January 1, 1 A.D.
}}
{{#ifeq:μ|
||
{{#ifeq:μ|μ
模板文档|文档}}}}
}} |{{#ifexist: Template:Documentation/docname
|[] [[{{fullurl:Template:Documentation/docname|action=edit}} 編輯]]
|[[{{fullurl:Template:Documentation/docname|action=edit&preload=Template:Documentation/preload}} 創建]]
}}
}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|{{#ifexist: Template:Documentation/docname
|这个說明來自於本頁包含的[[Template:Documentation/docname]]。([{{fullurl:Template:Documentation/docname|action=edit}} 編輯] | [{{fullurl:Template:Documentation/docname|action=history}} 歷史])
}}{{#switch: Gregorian serial date |sandbox|testcases= |#default= {{#switch: Template |Template |User= {{#ifexist: Template:Gregorian serial date/sandbox |这个模板有沙盒 ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} 編輯]) {{#ifexist: Template:Gregorian serial date/testcases |和 測試案例 ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} 編輯])}}供编辑者試驗。 |{{#ifexist: Template:Gregorian serial date/testcases |这个模板有測試案例 ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} 編輯]) 供编辑者試驗。}} }}}}}}
{{#if:|{{{content}}}|{{#ifexist:Template:Documentation/docname | {{ Template:Documentation/docname }} }}}}