Wikia

Memory Alpha

Daysago

Discuss0
37,230pages on
this wiki

Template page

Revision as of 11:51, February 5, 2011 by Cid Highwind (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The following documentation is transcluded from Template:Daysago/doc:

This template can be used to calculate the amount of days between today and a date that is given as the only parameter.

Attention: A call to this template does not return an exact value, but only an approximation. Each full year is considered to be 365 days, each full month 30 days. This is considered to be good enough for most maintenance uses of this template.

Usage Edit

{{ daysago | <date> }}

The date value is mandatory, and needs to be given in a format that can be parsed by the #time parser function. For more information, see the MediaWiki help page about parser functions.

Examples Edit

{{daysago|March 2007}}
produces: 2703
{{daysago|2011-01-01}}
produces: 1303
{{daysago|{{REVISIONTIMESTAMP}}}} (the date of the last edit to this page, 20110205115126)
produces: 1269

Around Wikia's network

Random Wiki