Template:dayssince

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Here's another one that could be useful... if it works.)
m
Line 1: Line 1:
-
<includeonly>{{#expr:floor(({{#time:U}}-{{{{{#time:U|d m y}}|{{#time:U|{{{1}}}}}}}}</includeonly>
+
<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.
-
 
+
-
<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:29, 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 }} 7778
{{dayssince| January 1, 2000 }} 9558
{{dayssince| 10/25/76 }} 18026
{{dayssince| July 1983 }} 15586
{{dayssince| 1995 }} 11323
{{dayssince| d=29 | m=5 | y=1952 }} 0
{{dayssince| y=1215 }} 0


Personal tools