Changes
Jump to navigation
Jump to search
no edit summary
<noinclude><!--
-========================================================================
- Days since: Show years/days or months/days since date: year|month|day
-========================================================================
--></noinclude>{{
#ifeq: {{{2|xnone<noinclude>more</noinclude>}}}|xnone|
<br>{{color|darkorange|'''{Days since}: Expected 3 numbers: year{{!}}month{{!}}day, but found: {{{1}}}'''<br>}}
}}{{
#ifexpr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} > 365
| {{#expr: floor( {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} / 365) }} years, {{#expr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} mod 365}} days
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 30
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | months ago }}
| {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes | d | days ago }}
}}
}}<noinclude>
{{documentation|content=
{{Inadequate documentation}}
'''{{tl|Days since}}''' shows the years/days (or months/days) since a specific date, entered in the 3-number format: year{{!}}month{{!}}day.
== See also ==
* [[Template:Birth date and age]] – show birthdate and age in years
* [[Template:Years and days]] – show years and days for a count in days
}}{{Sandbox other|<!-- Absolutely nothing. -->|
[[Category:Date-computing templates based on current time]]
}}
</noinclude>
-========================================================================
- Days since: Show years/days or months/days since date: year|month|day
-========================================================================
--></noinclude>{{
#ifeq: {{{2|xnone<noinclude>more</noinclude>}}}|xnone|
<br>{{color|darkorange|'''{Days since}: Expected 3 numbers: year{{!}}month{{!}}day, but found: {{{1}}}'''<br>}}
}}{{
#ifexpr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} > 365
| {{#expr: floor( {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} / 365) }} years, {{#expr: {{age in days|{{{1|2011}}}|{{{2|3}}}|{{{3|4}}}}} mod 365}} days
| {{#ifexpr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} > 30
| {{#expr: floor{{#expr: {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} / 30}}}}{{#ifeq: {{{short|}}} | yes | m | months ago }}
| {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}{{#ifeq: {{{short|}}} | yes | d | days ago }}
}}
}}<noinclude>
{{documentation|content=
{{Inadequate documentation}}
'''{{tl|Days since}}''' shows the years/days (or months/days) since a specific date, entered in the 3-number format: year{{!}}month{{!}}day.
== See also ==
* [[Template:Birth date and age]] – show birthdate and age in years
* [[Template:Years and days]] – show years and days for a count in days
}}{{Sandbox other|<!-- Absolutely nothing. -->|
[[Category:Date-computing templates based on current time]]
}}
</noinclude>