A
Andy Leszczynski
Python 2.2/Unix
'22:12:17'
Python 2.3/Windows
''
Any clues?
A.
'22:12:17'
Python 2.3/Windows
''
Any clues?
A.
Andy said:Python 2.2/Unix
'22:12:17'
Python 2.3/Windows
''
Robert said:Andy said:Python 2.2/Unix
'22:12:17'
Python 2.3/Windows
''
From http://docs.python.org/lib/node252.html
"""The full set of format codes supported varies across platforms,
because Python calls the platform C library's strftime() function, and
platform variations are common."""
So I suggest that it's a platform issue, not a Python version issue. FWIW:
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.'22:50:59'
Andy said:I accept that, but still pain. Took me a while to filter out the problem
in the code running on the Unix and not on M$.
Robert said:Andy said:Python 2.2/Unix
time.strftime("%T")
'22:12:15'
time.strftime("%X")
'22:12:17'
Python 2.3/Windows
time.strftime("%X")
'22:12:47'
time.strftime("%T")
''
From http://docs.python.org/lib/node252.html
"""The full set of format codes supported varies across platforms,
because Python calls the platform C library's strftime() function, and
platform variations are common."""
So I suggest that it's a platform issue, not a Python version issue. FWIW:
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.'22:50:59'import time
time.strftime("%T") '22:50:49'
time.strftime("%X")
I accept that, but still pain. Took me a while to filter out the problem
in the code running on the Unix and not on M$.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.