User:Miranche/Template Age in days testcases

CE periods
Days between 2007-05-24 and 2008-04-23: 335 days Ditto, named parameters: Days since 2007-05-24: 6246 days Days since 1 January 1 CE: 8579 days Years and days since 1 January 1 CE: 23 years, 184 days

Age in days, starting and/or ending in BCE
Days since 31 December 1 BCE: 8580 days Mixed period: 8349 days Mixed period: Mixed period, named parameters: BCE period:

Age in years and days, starting and/or ending in BCE
Years and days since 31 December 1 BCE: 23 years, 185 days Mixed period ending in 1 CE, example 1: 22 years, 319 days Mixed period ending in 1 CE, example 2: Mixed period ending after 1 CE, example 1: Mixed period ending after 1 CE, example 2: BCE period:

Age in days, starting and/or ending in BCE
Days since 31 December 1 BCE: no easy workaround Mixed period (adding 20 years): Mixed period (adding 20 years): Mixed period, named parameters (adding 40 years): BCE period (inverting start and end year):

Age in years and days, starting and/or ending in BCE
Mixed period ending in 1 CE, example 2 (adding 20 years): BCE period (inverting start and end year):

CE periods
Days between 2007-05-24 and 2008-04-23: Ditto, named parameters: Days since 2007-05-24: Days since 1 January 1 CE: Years and days since 1 January 1 CE:

Age in days, starting and/or ending in BCE
Days since 31 December 1 BCE: Mixed period: Mixed period: Mixed period, named parameters: BCE period:

Age in years and days, starting and/or ending in BCE
Years and days since 31 December 1 BCE: Mixed period ending in 1 CE, example 1: Mixed period ending in 1 CE, example 2: Mixed period ending after 1 CE, example 1: Mixed period ending after 1 CE, example 2: BCE period: