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.: 08可选
day2
6
day 2day of 2. datecurrent day, e.g.: 2可选

附加信息

本模板可以用于以下名字空间: 未指定名字空间

本模板可以被以下用户组使用: 未指定用户组

实例

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

生成:

335


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

生成:

6280

本地化

本模板不用本地化。