{% extends "admin/change_form.html" %} {% load admin_modify admin_urls i18n %}{% block extrahead %}{{ block.super }} {% url 'adminactions.format_date' as url_format_date %} {% if url_format_date %} {% endif %} {% endblock extrahead %} {% block breadcrumbs %}{% if not is_popup %}
{% endif %}{% endblock breadcrumbs %} {% block content %} {% if adminform.form.subject.errors %}{% translate "character" %} | {% translate "Description" %} | {% translate "Example returned values" %} |
---|---|---|
{% translate "Day" %} | --- | --- |
d | {% translate "Day of the month, 2 digits with leading zeros" %} | 01 {% translate "to" %} 31 |
D | {% translate "A textual representation of a day, three letters" %} | {% translate "Mon" %}{% translate "through" %}{% translate "Sun" %} |
j | {% translate "Day of the month without leading zeros" %} | 1 {% translate "to" %}31 |
l (lowercase 'L') | {% translate "A full textual representation of the day of the week" %} | {% translate "Sunday" %}{% translate "through" %}{% translate "Saturday" %} |
1{% translate "for Monday through" %}7{% translate "for Sunday" %} | ||
S | {% translate "English ordinal suffix for the day of the month, 2 characters" %} | st, nd, rd or th.{% translate "Works well with" %} j |
w | {% translate "Numeric representation of the day of the week" %} | 0{% translate "(for Sunday) through" %}6{% translate "(for Saturday)" %} |
z | {% translate "The day of the year (starting from 0)" %} | 0{% translate "through" %}365 |
{% translate "Week" %} | --- | --- |
W | {% translate "ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)" %} | {% translate "Example:" %} 42 {% translate "(the 42nd week in the year)" %} |
{% translate "Month" %} | --- | --- |
F | {% translate "A full textual representation of a month, such as January or March" %} | {% translate "January" %} {% translate "through" %}{% translate "December" %} |
m | {% translate "Numeric representation of a month, with leading zeros" %} | 01{% translate " through" %} 12 |
M | {% translate "A short textual representation of a month, three letters" %} | {% translate "Jan" %}{% translate " through" %}{% translate "Dec" %} |
n | {% translate "Numeric representation of a month, without leading zeros" %} | 1{% translate " through" %}12 |
t | {% translate "Number of days in the given month" %} | 28{% translate " through" %} 31 |
{% translate "Year" %} | --- | --- |
L | {% translate "Whether it's a leap year" %} | 1{% translate " if it is a leap year, " %}0 {% translate "otherwise." %} |
{% translate "Examples:" %}{% translate "1999" %}{% translate "or" %} {% translate "2003" %} | ||
Y | {% translate "A full numeric representation of a year, 4 digits" %} | {% translate "Examples: " %}{% translate "1999" %} {% translate "or" %} 2003 |
y | {% translate "A two digit representation of a year" %} | {% translate "Examples: 99 or 03" %} |
{% translate "Time" %} | --- | --- |
a | {% translate "Lowercase Ante meridiem and Post meridiem" %} | am {% translate "or " %}pm |
A | {% translate "Uppercase Ante meridiem and Post meridiem" %} | AM{% translate " or " %}PM |
B | {% translate "Swatch Internet time" %} | 000{% translate " through " %}999 |
g | {% translate "12-hour format of an hour without leading zeros" %} | 1{% translate " through " %}12 |
G | {% translate "24-hour format of an hour without leading zeros" %} | 0{% translate " through " %}23 |
h | {% translate "12-hour format of an hour with leading zeros" %} | 01{% translate " through " %}12 |
H | {% translate "24-hour format of an hour with leading zeros" %} | 00{% translate " through " %}23 |
i | {% translate "Minutes with leading zeros" %} | 00{% translate " to " %}59 |
s | {% translate "Seconds, with leading zeros" %} | 00{% translate " through" %} 59 |
{% translate "Timezone" %} | --- | --- |
I{% translate " (capital i)" %} | {% translate "Whether or not the date is in daylight saving time" %} | 1{% translate " if Daylight Saving Time, 0 otherwise." %} |
O | {% translate "Difference to Greenwich time (GMT) in hours" %} | {% translate "Example: " %}+0200 |
T | {% translate "Timezone abbreviation" %} | {% translate "Examples: " %}EST, MDT ... |
Z | {% translate "Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive." %} | -43200{% translate "through " %}50400 |
{% translate "Full Date/Time" %} | --- | --- |
r | ยป RFC 2822{% translate "formatted date" %} | {% translate "Example: " %}{% translate "Thu, 21 Dec 2000 16:01:07 +0200" %} |
U | {% translate "Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)" %} | {% translate "See also" %} time() |