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: time.strftime('%F', local_time) is okay but time.strptime no
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, nkour
Priority: normal Keywords:

Created on 2005-12-26 15:28 by nkour, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27161 - (view) Author: Nikos Kouremenos (nkour) Date: 2005-12-26 15:28
THIS IS SUPER HUGE IMO


>>> a = time.strftime('%F', local_time)
>>> time.strptime(a, '%F')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/_strptime.py", line 287, in
strptime
    format_regex = time_re.compile(format)
  File "/usr/lib/python2.4/_strptime.py", line 264, in
compile
    return re_compile(self.pattern(format), IGNORECASE)
  File "/usr/lib/python2.4/_strptime.py", line 256, in
pattern
    processed_format = "%s%s%s" % (processed_format,
KeyError: 'F'

msg27162 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-12-26 18:02
Logged In: YES 
user_id=1188172

Closing as Invalid, see bug #1390605.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42732
2005-12-26 15:28:41nkourcreate