Difference between revisions of "Template:JULIANDIFF/doc"

From Hattrick
 
Line 7: Line 7:
 
:<nowiki>{{JULIANDIFF|2010|2|1|2010|1|1}}</nowiki> produces {{JULIANDIFF|2010|2|1|2010|1|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|{{PAGENAME}}]]</includeonly>

Latest revision as of 22:10, 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