#34387: DateFormat.P() does not follow PHP's date string format
-------------------------------+--------------------------------------
Reporter: null | Owner: nobody
Type: Uncategorized | Status: new
Component: Utilities | Version: 4.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by null):
* status: closed => new
* type: Bug => Uncategorized
* version: 3.2 => 4.2
* resolution: wontfix =>
Comment:
In that case the inline documentation is incorrect and should be updated
as in djang.utils.dateformat it still, as of 4.2, reads:
{{{
"""
PHP date() style date formatting
See http://www.php.net/date for format strings
Usage:
>>> import datetime
>>> d = datetime.datetime.now()
>>> df = DateFormat(d)
>>> print(df.format('jS F Y H:i'))
7th October 2003 11:39
>>>
"""
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34387#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070186b3f5c62a-05fcb1c3-879c-4969-b515-b06628f9544c-000000%40eu-central-1.amazonses.com.