This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: strptime %F and %T directives
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, mark-roberts
Priority: normal Keywords: patch

Created on 2007-01-15 00:40 by mark-roberts, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bug_1633628_strptime.patch mark-roberts, 2007-01-15 00:40 Lib/_strptime.py and Lib/test/test_time.py
bug_1633628_strptime_doc.patch mark-roberts, 2007-01-15 01:05 Documentation patch
Messages (3)
msg51743 - (view) Author: Mark Roberts (mark-roberts) Date: 2007-01-15 00:40
In response to bug 1633628.  %F and %T are valid directives.  These are added to Lib/_strptime.py via adding the Y-M-d H:M:S directives in sub-expressions.  Includes a test case.
msg51744 - (view) Author: Mark Roberts (mark-roberts) Date: 2007-01-15 01:05
I took a look on the time documentation page, and it did not detail %F and %T, even though they were supported in strftime.  I added them to the documentation page since strptime now supports them.
File Added: bug_1633628_strptime_doc.patch
msg51745 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2007-01-15 19:19
Thanks for the work, Mark, but I am going to have to reject this patch.  The F and T directives are not supported necessarily on every platform (at least to my knowledge) which is why they are not documented.  Because of this I don't want to add support for them to strptime and have to start maintaining directives that are not documented.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44468
2007-01-15 00:40:00mark-robertscreate