FAQ
The original message was received at Fri, 5 Aug 2005 08:53:02 +0300 from python.org [182.250.185.89]

----- The following addresses had permanent fatal errors -----
python-list at python.org




From leszczynscyATnospam.yahoo.com.nospam Fri Aug 5 08:02:48 2005
From: leszczynscyATnospam.yahoo.com.nospam (Andy Leszczynski)
Date: Fri, 05 Aug 2005 01:02:48 -0500
Subject: >time.strftime %T missing in 2.3
In-Reply-To: <mailman.2738.1123221209.10512.python-list@python.org>
References: <F8ydnf9AyanxZm_fRVn-pw@comcast.com>
<mailman.2738.1123221209.10512.python-list@python.org>
Message-ID: <VdadnYZudti1Ym_fRVn-vg@comcast.com>

Robert Kern wrote:
Andy Leszczynski wrote:
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.
import time
time.strftime("%T")
'22:50:49'
time.strftime("%X")
'22:50:59'
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$.

A.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedAug 5, '05 at 5:53a
activeAug 5, '05 at 5:53a
posts1
users1
websitepython.org

1 user in discussion

MAILER-DAEMON: 1 post

People

Translate

site design / logo © 2022 Grokbase