Message86946
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 ) |
|
Date |
User |
Action |
Args |
2009-05-02 13:25:39 | barry-scott | set | recipients:
+ barry-scott, georg.brandl |
2009-05-02 13:25:39 | barry-scott | set | messageid: <1241270739.12.0.286821632978.issue5904@psf.upfronthosting.co.za> |
2009-05-02 13:25:37 | barry-scott | link | issue5904 messages |
2009-05-02 13:25:37 | barry-scott | create | |
|