diff options
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 4a158432d9..94a1e8595a 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -144,10 +144,10 @@ class TimeFormat(Formatter): def P(self): """ - Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off - if they're zero and the strings 'midnight' and 'noon' if appropriate. - Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.' - Proprietary extension. + Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left + off if they're zero and the strings 'midnight' and 'noon' if + appropriate. Examples: '1 a.m.', '1:30 p.m.', 'midnight', 'noon', + '12:30 p.m.' Proprietary extension. """ if self.data.minute == 0 and self.data.hour == 0: return _("midnight") @@ -216,7 +216,10 @@ class DateFormat(TimeFormat): return WEEKDAYS_ABBR[self.data.weekday()] def E(self): - "Alternative month names as required by some locales. Proprietary extension." + """ + Alternative month names as required by some locales. Proprietary + extension. + """ return MONTHS_ALT[self.data.month] def F(self): |
