Template:dayssince

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (Okay, it needs some work)
m
Line 1: Line 1:
-
<includeonly>{{#expr:floor(({{#time:U}}-{{{{{#time:U|d m y}}|{{#time:U|{{{1}}}}}}}}}}</includeonly><noinclude>Outputs the number of days since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters.
+
<includeonly>{{#expr:floor(({{#time:U}}-{{{{{#time:U|d m y}}|{{#time:U|{{{1}}}}}}}}))}}</includeonly><noinclude>Outputs the number of days since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters.
===='''Usage'''====
===='''Usage'''====

Revision as of 01:30, 20 May 2009

Outputs the number of days since a specified date. If the date is on or after 1 January 1970, it can be entered directly in a variety of formats. Otherwise, it must be specified using several parameters.

Usage

  • {{dayssince| some date }}
  • {{dayssince| d=day | m=month | y=year }}

Examples

{{dayssince| 15 Nov 2004 }} 7777
{{dayssince| January 1, 2000 }} 9557
{{dayssince| 10/25/76 }} 18025
{{dayssince| July 1983 }} 15585
{{dayssince| 1995 }} 11323
{{dayssince| d=29 | m=5 | y=1952 }} 0
{{dayssince| y=1215 }} 0


Personal tools