Fixed #19917 -- Added microseconds in default TIME_INPUT_FORMATS

Thanks minddust for the report.
This commit is contained in:
Claude Paroz 2013-03-02 18:01:24 +01:00
parent fe5d9fe5fe
commit 384c180e41
4 changed files with 13 additions and 2 deletions

View file

@ -1731,6 +1731,7 @@ Default::
(
'%H:%M:%S', # '14:30:59'
'%H:%M:%S.%f', # '14:30:59.000200'
'%H:%M', # '14:30'
)
@ -1744,6 +1745,10 @@ precedence and will be applied instead.
See also :setting:`DATE_INPUT_FORMATS` and :setting:`DATETIME_INPUT_FORMATS`.
.. versionchanged:: 1.6
Input format with microseconds has been added.
.. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
.. setting:: TIME_ZONE