Difference between revisions of "Template:GSD"

From CWCki
Jump to navigation Jump to search
m (Created page with "{{#expr: <!--Days from all years past:--> + (({{{year|{{CURRENTYEAR}}}}} - 1) * 365) + ((({{{year|{{CURRENTYEAR}}}}} - 1) - (({{{year|{{CURRENTYEAR}}}}}...")
 
(Categorized as a date computing template.)
 
(2 intermediate revisions by one other user not shown)
Line 30: Line 30:
  }}{{#ifexpr: {{{year|{{CURRENTYEAR}}}}} < 1 |
  }}{{#ifexpr: {{{year|{{CURRENTYEAR}}}}} < 1 |
         _ERROR - Can not handle dates before January 1, 1 A.D.
         _ERROR - Can not handle dates before January 1, 1 A.D.
   }}
   }}<noinclude>{{usage|1=This template is used to calculate the day of a given date in the Gregorian calendar. This is useful for things like templates which use dates in calculations.
 
The template can be used in the following way:
* '''<nowiki>{{GSD| day=11 | month=12 | year=2010}}</nowiki>''' will return {{GSD| day=11 | month=12 | year=2010}}, the Gregorian day for 11 December 2010.}}
[[Category:CWCki templates|{{PAGENAME}}]][[Category:Date computing templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:14, 4 December 2010

739212

Usage

These usage notes will not be included in articles bearing this template.

This template is used to calculate the day of a given date in the Gregorian calendar. This is useful for things like templates which use dates in calculations.

The template can be used in the following way:

  • {{GSD| day=11 | month=12 | year=2010}} will return 734117, the Gregorian day for 11 December 2010.