Template: Unix day
From A Wiki of Ice and Fire
| Note: This Template is used on the Main Page to determine which daily featured content to display. Be careful when editing it and double check the Main Page after the fact. |
This template gives the Unix day, that is, the number of days since Thursday, January 1, 1970 at 00:00:00 UTC. It is used to select the featured content on the Main Page.
Usage
By default, the calculation uses today's date:
{{unix day}}
= 19810.
For other dates, use the first positional parameter (multiple formats seem to be accepted):
{{unix day|October 20, 2003}}
→ 12345{{unix day|1997-05-19}}
→ 10000
The above documentation is transcluded from Template:Unix day/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. |