[ python-Bugs-1280061 ] time.strptime() fails with unicode date string, de_DE locale
SourceForge.net
noreply at sourceforge.net
Thu Sep 1 22:06:07 CEST 2005
Bugs item #1280061, was opened at 2005-09-01 13:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1280061&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Adam Monsen (meonkeys)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.strptime() fails with unicode date string, de_DE locale
Initial Comment:
Trying to parse a German date string fails in Python
2.4.1. Test case attached.
Since there's no indenting, I suppose the test case can
also be pasted here:
import locale, time
locale.setlocale(locale.LC_TIME, 'de_DE')
date = u'10. September 2005 um 17:26'
format = '%d. %B %Y um %H:%M'
time.strptime(date, format)
--
Adam Monsen
http://adammonsen.com/
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1280061&group_id=5470
More information about the Python-bugs-list
mailing list