Jump to content

User:Miranche/Template Age in days testcases

From Wikipedia, the free encyclopedia

Using current templates

[edit]

CE periods

[edit]

Days between 2007-05-24 and 2008-04-23: 335
Ditto, named parameters: 335
Days since 2007-05-24: 6384
Days since 1 January 1 CE: 739203
Years and days since 1 January 1 CE: 2,023 years, 318 days

Age in days, starting and/or ending in BCE

[edit]

Days since 31 December 1 BCE: 739204
Mixed period: 366
Mixed period: 702
Mixed period, named parameters: 14825
BCE period: 5092

Age in years and days, starting and/or ending in BCE

[edit]

Years and days since 31 December 1 BCE: 2,023 years, 319 days
Mixed period ending in 1 CE, example 1: 1 year, 0 days
Mixed period ending in 1 CE, example 2: 1 year, 336 days
Mixed period ending after 1 CE, example 1: 40 years, 215 days
Mixed period ending after 1 CE, example 2: 43 years, 351 days
BCE period: 13 years, 344 days

Using current templates with workarounds

[edit]

Age in days, starting and/or ending in BCE

[edit]

Days since 31 December 1 BCE: no easy workaround
Mixed period (adding 20 years): 366
Mixed period (adding 20 years): 702
Mixed period, named parameters (adding 40 years): 14825
BCE period (inverting start and end year): 5093

Age in years and days, starting and/or ending in BCE

[edit]

Mixed period ending in 1 CE, example 2 (adding 20 years): 1 year, 336 days
BCE period (inverting start and end year): 13 years, 345 days

Using proposed new "age in days" template

[edit]

CE periods

[edit]

Days between 2007-05-24 and 2008-04-23: 335
Ditto, named parameters: 6384
Days since 2007-05-24: 335
Days since 1 January 1 CE: 739203
Years and days since 1 January 1 CE: 2,023 years, 318 days

Age in days, starting and/or ending in BCE

[edit]

Days since 31 December 1 BCE: 739204
Mixed period: 366
Mixed period: 702
Mixed period, named parameters: 14825
BCE period: 5092

Age in years and days, starting and/or ending in BCE

[edit]

Years and days since 31 December 1 BCE: 2,023 years, 319 days
Mixed period ending in 1 CE, example 1: 365 days
Mixed period ending in 1 CE, example 2: 1 year, 336 days
Mixed period ending after 1 CE, example 1: 40 years, 215 days
Mixed period ending after 1 CE, example 2: 43 years, 351 days
BCE period: 13 years, 344 days