模板:Age in years and days/1

出自 NiceChord Wiki
跳至導覽 跳至搜尋

計算「自指定日期起所經過的年數及日數」中的這個「日數」。

測試

代碼 理論結果 實際結果
{{Age in years and days/1|2017|02|28|2017|03|01}} 1 1
{{Age in years and days/1|2016|02|28|2016|03|01}} 2 2
{{Age in years and days/1|2016|02|29|2016|03|01}} 1 1
{{Age in years and days/1|2018|02|28|2020|03|01}} 2 2
{{Age in years and days/1|2016|02|28|2018|03|01}} 1 1
{{Age in years and days/1|2016|02|29|2018|03|01}} 1 1
{{Age in years and days/1|2014|03|01|2018|02|28}} 364 364
{{Age in years and days/1|2014|03|01|2016|02|28}} 364 364
{{Age in years and days/1|2014|03|01|2016|02|29}} 365 365
{{Age in years and days/1|2016|03|01|2018|02|28}} 364 364
{{Age in years and days/1|2016|03|01|2020|02|28}} 364 364
{{Age in years and days/1|2016|03|01|2020|02|29}} 365 365
{{Age in years and days/1|2018|01|01|2018|02|18}} 48 48
{{Age in years and days/1|2018|01|01|2020|02|18}} 48 48
{{Age in years and days/1|2020|01|01|2020|02|18}} 48 48
{{Age in years and days/1|2020|01|01|2022|02|18}} 48 48
{{Age in years and days/1|2018|10|01|2018|11|18}} 48 48
{{Age in years and days/1|2018|10|01|2020|11|18}} 48 48
{{Age in years and days/1|2020|10|01|2020|11|18}} 48 48
{{Age in years and days/1|2020|10|01|2022|11|18}} 48 48
{{Age in years and days/1|2018|08|01|2019|05|18}} 290 290
{{Age in years and days/1|2018|08|01|2021|05|18}} 290 290
{{Age in years and days/1|2020|08|01|2021|05|18}} 290 290
{{Age in years and days/1|2020|08|01|2023|05|18}} 290 290
{{Age in years and days/1|2007|02|01|2008|03|01}} 29 29
{{Age in years and days/1|2005|02|01|2019|06|01}} 120 120
{{Age in years and days/1|1900|2|28|1900|3|1}} 1 1
{{Age in years and days/1|1901|2|28|1901|3|1}} 1 1
{{Age in years and days/1|1904|2|28|1904|3|1}} 2 2
{{Age in years and days/1|2008|1|1|2009|1|2}} 1 1
{{Age in years and days/1|2008|1|1|2010|1|3}} 2 2
{{Age in years and days/1|2008|2|28|2009|3|1}} 1 1
{{Age in years and days/1|2008|2|28|2010|3|2}} 2 2
{{Age in years and days/1|2006|12|31|2008|1|1}} 1 1
{{Age in years and days/1|2006|12|31|2009|1|2}} 2 2