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.

Author barry-scott
Recipients barry-scott, georg.brandl
Date 2009-05-02.13:25:37
SpamBayes Score 2.6126074e-05
Marked as misclassified No
Message-id <1241270739.12.0.286821632978.issue5904@psf.upfronthosting.co.za>
In-reply-to
Content
The result of time.strftime seems to be in the locale encoding
but this is not pointed out in the documentation.

Ideally an example like this would be in the docs to show how to
deal with strftime output:

import locale
import time

locale_encoded_time = time.strftime( '%d-%b-%Y %H:%M:%S' )

language, encoding = locale.getdefaultlocale()
unicode_time = locale_encoded_time.decode( encoding )
History
Date User Action Args
2009-05-02 13:25:39barry-scottsetrecipients: + barry-scott, georg.brandl
2009-05-02 13:25:39barry-scottsetmessageid: <1241270739.12.0.286821632978.issue5904@psf.upfronthosting.co.za>
2009-05-02 13:25:37barry-scottlinkissue5904 messages
2009-05-02 13:25:37barry-scottcreate