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