Difference between revisions of "Template:GSD"
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}}}}}...") |
m |
||
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.}}</noinclude> | |||
[[Category:CWCki templates]] |
Revision as of 19:10, 22 November 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.