Template:Gsd: Difference between revisions
(as seen on Wikipedia) |
m (+cat) |
||
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. | ||
}}</includeonly><noinclude>When passed a "year", "month", and "day", this template gives the '''G'''regorian '''s'''erial '''d'''ate, that is, the number of the supplied date's day when counting sequentially from 1 AD. I'm not sure it's entirely accurate (might be off by a few days between 1 AD and now), but it's good enough for use by [[Template:AgeFull]].</noinclude> | }}</includeonly><noinclude>When passed a "year", "month", and "day", this template gives the '''G'''regorian '''s'''erial '''d'''ate, that is, the number of the supplied date's day when counting sequentially from 1 AD. I'm not sure it's entirely accurate (might be off by a few days between 1 AD and now), but it's good enough for use by [[Template:AgeFull]]. | ||
[[Category:Macro templates]]</noinclude> |
Revision as of 15:55, 17 June 2013
When passed a "year", "month", and "day", this template gives the Gregorian serial date, that is, the number of the supplied date's day when counting sequentially from 1 AD. I'm not sure it's entirely accurate (might be off by a few days between 1 AD and now), but it's good enough for use by Template:AgeFull.