This template computes the Gregorian serial day. This is the day number according to the proleptic Gregorian calendar, with 1-1-1 as number 1. It works for all years, and is exact for at least the years from -100,000,000,000 until 100,000,000,000. The input is in parameters 1, 2, 3 for the year, the month number and the day.
It is demonstrated on the page Help:Demo of function time.
It uses function
#time after reducing the year number to one in the range of this function, and converts the result to compensate for this reduction.
|The above documentation is transcluded from Template:Gsd/doc. (edit | history)|
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this template.