自2019年9月29日起,未验证邮箱的用户将无法编辑页面。请前往参数设置验证邮箱,谢谢您的配合(若您使用中国大陆邮箱,可能存在较高延迟,请耐心等待;若24小时内未收到,请检查您的垃圾箱重新申请一次

模板:AgeD

From Ballance Wiki
Jump to: navigation, search

0

Usage

Full dates

To use, type:

{{AgeD|date1|date2}}  (number of days between dates 1 and 2),
{{AgeD|date1}} (number of days since date 1) or
{{AgeD||date2}} (number of days until date 2)

Examples:

{{AgeD|19 Aug 2008|4 Sep 2010}} gives 746
{{AgeD|27 May 2002}} gives 7,182

Year, month and day

To use, type:

{{AgeD|year1|month1|day1|year2|month2|day2}}  (number of days between dates 1 and 2),
{{AgeD|year1|month1|day1}} (number of days since date 1) or
{{AgeD||||year2|month2|day2}} (number of day until date 2)

Or with named parameters:

{{AgeD|month1= |day1= |year1= |month2= |day2= | year2= }}  (number of days between dates 1 and 2),
{{AgeD|month1= |day1= |year1= }} (number of days since date 1) or
{{AgeD|month2= |day2= | year2= }} (number of day until date 2)

Examples:

{{AgeD|2007|5|24|2008|4|23}}  gives 335
{{AgeD|2007|5|24}} gives 5359

Formatting

Three styles of formatting are possible.

format=raw gives unformatted numbers with hyphens as minus signs (negative days will occur if the first date is after the second, for use in further calculations).