Birth date and age testcases
editIf the template has been updated, use
to update this page.Production template
editSyntax | Result | Desired ISO 8609 | ISO 8601 emitted |
---|---|---|---|
{{Birth-date and age |July 25, 587 |bce=b}}
|
July 25, 587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age |July 30, 587 |bce=b |gregorian=July 24, 587}}
|
July 30, 587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age |December 5, 169 |bce=b}}
|
December 5, 169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age |December 8, 169 |bce=b |gregorian=December 5, 169}}
|
December 8, 169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age |September 24, 70}}
|
September 24, 70 | (age 54)0070-09-24 | 1970-09-24 |
{{Birth-date and age |September 26, 70 |gregorian=September 24, 70}}
|
September 26, 70 | (age 54)0070-09-24 | 1970-09-24 |
{{Birth-date and age |October 2, 135}}
|
October 2, 135 | (age 1889)0135-10-02 | 0135-10-02 |
{{Birth-date and age |October 3, 135 |gregorian=October 2, 135}}
|
October 3, 135 | (age 1889)0135-10-02 | 0135-10-02 |
{{subst:Birth-date and age |October 3, 135 |gregorian=October 2, 135}}
|
October 3, 135 | (age 1889)0135-10-02 | 0135-10-02 |
{{subst:Birth-date and age |October 3, 135 |gregorian=October 2, 135}}
|
October 3, 135 | (age 1889)0135-10-02 | 0135-10-02 |
Production template with leading zeros for years
editSyntax | Result | Desired ISO 8609 | ISO 8601 emitted |
---|---|---|---|
{{Birth-date and age |July 25, 0587 |bce=b}}
|
July 25, 0587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age |July 30, 0587 |bce=b |gregorian=July 24, 587}}
|
July 30, 0587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age |December 5, 0169 |bce=b}}
|
December 5, 0169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age |December 8, 0169 |bce=b |gregorian=December 5, 0169}}
|
December 8, 0169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age |September 24, 0070}}
|
September 24, 0070 | (age 1954)0070-09-24 | 1970-09-24 |
{{Birth-date and age |September 26, 0070 |gregorian=September 24, 0070}}
|
September 26, 0070 | (age 1954)0070-09-24 | 1970-09-24 |
{{Birth-date and age |October 2, 0135}}
|
October 2, 0135 | (age 1889)0135-10-02 | 0135-10-02 |
{{Birth-date and age |October 3, 0135 |gregorian=October 2, 135}}
|
October 3, 0135 | (age 1889)0135-10-02 | 0135-10-02 |
{{subst:Birth-date and age |October 3, 0135 |gregorian=October 2, 0135}}
|
October 3, 0135 | (age 1889)0135-10-02 | 0135-10-02 |
{{subst:Birth-date and age |October 3, 0135 |gregorian=October 2, 0135}}
|
October 3, 0135 | (age 1889)0135-10-02 | 0135-10-02 |
Sandbox template
editSyntax | Result | Desired ISO 8609 | ISO 8601 emitted |
---|---|---|---|
{{Birth-date and age/sandbox |July 25, 587 |bce=b}}
|
July 25, 587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age/sandbox |July 30, 587 |bce=b |gregorian=July 24, 587}}
|
July 30, 587 | (age 2611)-0587-07-25 | 0587-07-25 |
{{Birth-date and age/sandbox |December 5, 169 |bce=b}}
|
December 5, 169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age/sandbox |December 8, 169 |bce=b |gregorian=December 5, 169}}
|
December 8, 169 | (age 2192)-0169-12-05 | 0169-12-05 |
{{Birth-date and age/sandbox |September 24, 70}}
|
September 24, 70 | (age 54)0070-09-24 | 1970-09-24 |
{{Birth-date and age/sandbox |September 26, 70 |gregorian=September 24, 70}}
|
September 26, 70 | (age 54)0070-09-24 | 1970-09-24 |
{{Birth-date and age/sandbox |October 2, 135}}
|
October 2, 135 | (age 1889)0135-10-02 | 0135-10-02 |
{{Birth-date and age/sandbox |October 3, 135 |gregorian=October 2, 135}}
|
October 3, 135 | (age 1889)0135-10-02 | 0135-10-02 |
Bibliography
edit- Reingold, Edward; Dershowitz, Nachum (2018). Calendrical Calculations (4th ed.). Cambridge University Press. Appendix C. ISBN 978-1-107-68316-7.