The date format follows the POSIX standards. There is one extension. By default, all numbers are zero-padded. (see modifiers section)
A Literal '%'
Abreviated name of day
Full name of day
Abreviated name of month
Full name of Month
Centruy (First 2 digits of year)
Day of month
Year of the Buddhist Era (Nominally Year + 543). Note, this may be wrong pre-1940CE
The ISO 8601 week-based year (see NOTES) with century as a decimal number. The 4-digit year corresponding to the ISO week number (see %V). This has the same format and value as %Y, except that if the ISO week number belongs to the previous or next year, that year is used instead. (TZ)
Like %G, but without century, that is, with a 2-digit year (00-99). (TZ)
Hour of day (01..23)
Hour of day (01..12)
The day of the year as a decimal number (range 001 to 366).
Hour of day (01..23)
Hour of day (01..12)
Month of year (01..12)
Minutes (01..59)
Meridian Letters (AM/PM) in uppercase
Meridian Letters (AM/PM) in lowercase
The number of seconds since the Epoch, 1970-01-01 00:00:00.
Seconds (00..59)
The day of the week (1-7), 1 = Sunday
The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01. See also %V and %W.
The ISO 8601 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the new year.
Day of week (0-7), 0 = Sunday
The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01.
Year (00-99) (2 Digit)
Full Year (4 Digit)
Date ordinal (st / nd / rd / th)
Duration Days
Duration Hours
Duration Minutes
Duration Seconds
Duration Days text - e.g. Day or Days
Pad with zeros (the default) - e.g. 4 -> %0d -> 04
Pad with nothing - e.g. 4 -> %-d -> 4
These options all deal with "standard" full formats - which is the point of this package
Formatting options that make no sense in an HTML world
Time zone options that are better handled server-side