Difference between revisions of "Template:JULIANDIFF/doc"

From Hattrick
Line 5: Line 5:
 
:<nowiki>{{JULIANDIFF|2009|1|1|2010|1|1}}</nowiki> produces {{JULIANDIFF|2009|1|1|2010|1|1}}
 
:<nowiki>{{JULIANDIFF|2009|1|1|2010|1|1}}</nowiki> produces {{JULIANDIFF|2009|1|1|2010|1|1}}
 
:<nowiki>{{JULIANDIFF|2010|1|1|2010|2|1}}</nowiki> produces {{JULIANDIFF|2010|1|1|2010|2|1}}
 
:<nowiki>{{JULIANDIFF|2010|1|1|2010|2|1}}</nowiki> produces {{JULIANDIFF|2010|1|1|2010|2|1}}
:<nowiki>{{JULIANDIFF|2010|2|1|2010|1|1}}</nowiki> produces {{JULIANDIFF|2010|2|1|2010|1}}
+
:<nowiki>{{JULIANDIFF|2010|2|1|2010|1|1}}</nowiki> produces {{JULIANDIFF|2010|2|1|2010|1|1}}
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<includeonly>[[Category:Date-computing templates]]</includeonly>
 
<includeonly>[[Category:Date-computing templates]]</includeonly>

Revision as of 22:09, 3 November 2010

Syntax
{{JULIANDIFF | YEAR_A | MONTH_A | DAY_A | YEAR_B | MONTH_B | DAY_B }}
Examples
{{JULIANDIFF|2010|1|1|2009|1|1}} produces 365
{{JULIANDIFF|2009|1|1|2010|1|1}} produces -365
{{JULIANDIFF|2010|1|1|2010|2|1}} produces -31
{{JULIANDIFF|2010|2|1|2010|1|1}} produces 31