Revision as of 04:24, 16 September 2023 by CoreyPlover (talk | contribs) (Created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description[edit source]

This template is designed to simplify the process of inserting dates into sorted tables.

Syntax[edit source]

| [Optional] Date string as used in PHP's strtotime() [http://php.net/manual/en/function.strtotime.php]
| [Optional] Formatting string as used in PHP dates [http://php.net/date]

Example[edit source]

Date Day Present
200801050000005-Jan-08 12 drummerstwelve drummers drumming
200801040000004-Jan-08 11 piperseleven pipers piping
200801030000003-Jan-08 10 lordsten lords a-leaping
200801020000002-Jan-08 9 ladiesnine ladies dancing
200801010000001-Jan-08 8 maidseight maids a-milking
2007123100000031-Dec-07 7 swansseven swans a-swimming
2007123000000030-Dec-07 6 geesesix geese a-laying
2007122900000029-Dec-07 5 goldfive golden rings
2007122800000028-Dec-07 4 calling birdsfour calling birds
2007122700000027-Dec-07 3 french hensthree french hens
2007122600000026-Dec-07 2 turtle dovestwo turtle doves
2007122500000025-Dec-07 1 partridge]]a partridge in a pear tree

Notes[edit source]

This template works by inserting hidden text equivalent to the ISO 8601 timestamp (yyyy-mm-dd hh:mm:ss) prior to the formatted text string.

The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer. Before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).