Template:Age in days

出自Wikimedia Commons
跳至導覽 跳至搜尋
模板文件檢視 · 編輯 · 歷史 · 清除快取 ]
This documentation is transcluded from Template:Age in days/doc.

This template returns the number of days between two dates. If the second set of parameters is not included it will calculate the days between the given date and today.

用法

{{Age in days |year1= |month1= |day1= |year2= |month2= |day2= }}

模板參數

參數描述預設狀態
year1
1
year 1year of 1. dateempty必填
month1
2
month 1month of 1. dateempty必填
day1
3
day 1day of 1. dateempty必填
year2
4
year 2year of 2. datecurrent year, e.g.: 2024非必填
month2
5
month 2month of 2. datecurrent month, e.g.: 06非必填
day2
6
day 2day of 2. datecurrent day, e.g.: 10非必填

其他資訊

該模板可以用於以下名字空間: 未指定名字空間

該模板可以由以下群組使用: 未指定群組

舉例

{{Age in days|2007|5|24|2008|4|23}}

顯示為:

335


{{Age in days|2007|5|24}}

顯示為:

6227

本地化

該模板不需要本地化。