Template:Time ago: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{birth date and age|{{#time:Y|{{{1}}}}}|{{#time:m|{{{1}}}}}|{{#time:d|{{{1}}}}}}}" |
m usage examples |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | <includeonly>{{#if: {{{2|}}} | {{{1}}} - {{{2}}} ''<small>({{age in years and months|{{#time:Y|{{{1}}}}}|{{#time:m|{{{1}}}}}|{{#time:d|{{{1}}}}}|{{#time:Y|{{{2}}}}}|{{#time:m|{{{2}}}}}|{{#time:d|{{{2}}}}}}})</small>'' | {{{1}}} ''<small>({{age in years and months|{{#time:Y|{{{1}}}}}|{{#time:m|{{{1}}}}}|{{#time:d|{{{1}}}}}}})</small>'' }}</includeonly><noinclude> | ||
Usage: <code><nowiki>{{time ago|DATE}}</nowiki></code> or <code><nowiki>{{time ago|FROM|TO}}</nowiki></code> | |||
For example: | |||
<code><nowiki>{{time ago|2019-01-01}}</nowiki></code> becomes <code>{{time ago|2019-01-01}}</code> | |||
<code><nowiki>{{time ago|2019-01-01|2020-05-10}}</nowiki></code> becomes <code>{{time ago|2019-01-01|2020-05-10}}</code> | |||
</noinclude> |
Latest revision as of 09:11, 20 February 2020
Usage: {{time ago|DATE}}
or {{time ago|FROM|TO}}
For example:
{{time ago|2019-01-01}}
becomes 2019-01-01 (5 years, 10 months)
{{time ago|2019-01-01|2020-05-10}}
becomes 2019-01-01 - 2020-05-10 (1 year, 4 months)