Template:Date and age in years and months: Difference between revisions

Template page
(Created page with "<includeonly>{{#invoke:Age|format_date|{{{1}}}}} ''({{#invoke:Age|format_age|{{{1}}}|{{#invoke:Age|retro|25}}|months}} old)''</includeonly><noinclude> Convert an ISO-formatted timestamp, or its respective date component, to its age in-universe (25 years ago, to the day). This template is tentative and prone to revision. {| class="wikitable" style="margin:auto" |+ Examples |- ! Input !! Output |- | <code><nowiki>{{Date and age in years and months|1991-06-24T00:00:00Z}}</...")
 
m ("old" to "ago", in preparation for new date + lifetime templates)
 
Line 1: Line 1:
<includeonly>{{#invoke:Age|format_date|{{{1}}}}} ''({{#invoke:Age|format_age|{{{1}}}|{{#invoke:Age|retro|25}}|months}} old)''</includeonly><noinclude>
<includeonly>{{#invoke:Age|format_date|{{{1}}}}} ''({{#invoke:Age|format_age|{{{1}}}|{{#invoke:Age|retro|25}}|months}} ago)''</includeonly><noinclude>
Convert an ISO-formatted timestamp, or its respective date component, to its age in-universe (25 years ago, to the day). This template is tentative and prone to revision.
Convert an ISO-formatted timestamp, or its respective date component, to its age in-universe (25 years ago, to the day). This template is tentative and prone to revision.


Line 18: Line 18:
* [[Template:Age in years and months]]
* [[Template:Age in years and months]]
* [[Template:Date and age in years]]
* [[Template:Date and age in years]]
* [[Template:Date and lifetime in years]]
* [[Template:Date and lifetime in years and months]]
</noinclude>
</noinclude>

Latest revision as of 03:14, 25 April 2023

Convert an ISO-formatted timestamp, or its respective date component, to its age in-universe (25 years ago, to the day). This template is tentative and prone to revision.

Examples
Input Output
{{Date and age in years and months|1991-06-24T00:00:00Z}} 24 June 1991 (9 years, 2 months ago)
{{Date and age in years and months|1991-06-24}} 24 June 1991 (9 years, 2 months ago)

See also