Template:Gsd: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (+cat)
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]].
   }}</includeonly><noinclude>When passed a "year", "month", and "day", this template from Wikipedia 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>
[[Category:Utility templates]]</noinclude>

Latest revision as of 04:14, 13 December 2015

When passed a "year", "month", and "day", this template from Wikipedia 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.