Difference between revisions of "Template:Days from now/doc"

From blackwiki
Jump to navigation Jump to search
imported>Gary
(→‎Usage: add ten years)
({{DEFAULTSORT:Days from now}})
Line 13: Line 13:
  
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
{{DEFAULTSORT:Days from now}}
 
[[Category:Date mathematics templates]]
 
[[Category:Date mathematics templates]]
 
</includeonly>
 
</includeonly>

Revision as of 02:29, 16 January 2009

Usage

This template will return a number in days if the date given is less than 60 days away; otherwise, it will return a number in months, so that it does not return large numbers of days that are probably not very useful, which can sometimes be in the thousands.

{{days from now|2020|1|1}}

produces

-2279 days

See also