Difference between revisions of "Template:Age"

From Second Life Wiki
Jump to navigation Jump to search
(test)
 
(documentation)
Line 1: Line 1:
<includeonly>{{#expr:(({{ #time: U | {{CURRENTTIMESTAMP}} }} - {{ #time: U | {{{1}}}.{{{2}}}.{{{3}}} }}) /  86400) round 0}}</includeonly>
<includeonly>{{#expr:(({{ #time: U | {{CURRENTTIMESTAMP}} }} - {{ #time: U | {{{1}}}.{{{2}}}.{{{3}}} }}) /  86400) round 0}}</includeonly>
<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>.
 
{{#expr:(({{ #time: U | {{CURRENTTIMESTAMP}} }} - {{ #time: U | 29.05.2008}}) /  86400) round 0}}
 
{{User:Zai Lynch/Sandbox/Age|29|05|2008}}
</noinclude>
</noinclude>

Revision as of 21:50, 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}}.