Template: Unix day

From A Wiki of Ice and Fire
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]
Mbox notice.png
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}} = 18191.

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