

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
4 messages in org.python.python-bugs-list[ python-Bugs-898253 ] strftime ignor...| From | Sent On | Attachments |
|---|---|---|
| SourceForge.net | Mar 13, 2004 8:17 pm | |
| SourceForge.net | Mar 14, 2004 1:03 am | |
| SourceForge.net | Mar 14, 2004 1:18 am | |
| SourceForge.net | Mar 14, 2004 4:58 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [ python-Bugs-898253 ] strftime ignores date format on winxp | Actions... |
|---|---|---|
| From: | SourceForge.net (nore...@sourceforge.net) | |
| Date: | Mar 14, 2004 1:03:49 am | |
| List: | org.python.python-bugs-list | |
Bugs item #898253, was opened at 2004-02-16 15:19 Message generated for change (Comment added) made by rhettinger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=898253&group_id=5470
Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Submitted By: Matthew Sherborne (matiu)
Assigned to: Tim Peters (tim_one)
Summary: strftime ignores date format on winxp
Initial Comment: On Windows XP in the control panel set your country to "New Zealand".
This gives a short date format of 'dd-mm-yy'
Now in python:
from time import * print strftime('%c', localtime) 02/17/04 09:15:10 print strftime('%x', localtime())
02/17/04
This is giving the date in the format 'mm-dd-yy' (American).
Could it be to do with the 'locale.nl_langinfo' bieng unavailable in xp?
Versions: ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32 Windows XP Home Edition (up to dateish)
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2004-03-14 01:04
Message: Logged In: YES user_id=80475
Tim, what do you think?
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon) Date: 2004-02-17 16:50
Message: Logged In: YES user_id=357491
This is a Windows C library bug and nothing to do with our end. Since time.strftime is just a wrapper around ISO C's strftime function we just pass in the arguments and then pass them back out without fiddling with anything.
So unless there is some compiler setting that needs to be set to be more locale-sensitive (doubt it, but since I don't have a Windows box I have no way of knowing; this is why I am unassigning this from myself) this is probably invalid and Microsoft's fault.
----------------------------------------------------------------------
Comment By: Matthew Sherborne (matiu) Date: 2004-02-16 15:29
Message: Logged In: YES user_id=304464
Sorry, code should be:
from time import * print strftime('%c', localtime()) 02/17/04 09:15:10 print strftime('%x', localtime())
02/17/04
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=898253&group_id=5470







