Difference between revisions of "Template:Age"
Jump to navigation
Jump to search
(documentation) |
m (should work better with local time zone since local = SLT) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#expr:(({{ #time: U | {{ | <includeonly>{{#expr:(({{ #time: U | {{LOCALDAY2}}.{{LOCALMONTH}}.{{LOCALYEAR}} }} - {{ #time: U | {{{1}}}.{{{2}}}.{{{3}}} }}) / 86400) round 0}}</includeonly><noinclude>This template calculates a difference in days between a given date (past 01.01.1970) and the current date. Use it with <nowiki>{{Age|DD|MM|YYYY}}</nowiki>.</noinclude> | ||
<noinclude> | |||
This template calculates a difference in days between a given date (past 01.01.1970) and the current date. Use it with <nowiki>{{Age|DD|MM|YYYY}}</nowiki>. | |||
</noinclude> |
Latest revision as of 21:25, 2 June 2008
This template calculates a difference in days between a given date (past 01.01.1970) and the current date. Use it with {{Age|DD|MM|YYYY}}.