Package: python2.6
Version: 2.6.6~rc1-1
Severity: important
Python docs say:
time.strftime(format[, t])
Convert a tuple or struct_time representing a time as returned by gmtime() or
localtime() to a string as specified by the format argument. If t is not
provided, the current time as returned by localtime() is used.
However,
>>> time.strftime("%Z", time.localtime())
'GMT'
>>> time.strftime("%Z")
'BST'
>>>
So, either the docs are buggy or the module is buggy. This is actually
relatively
annoying, since there seems to be no way of getting strftime to output the
correct
timezone name when it is given the time argument. It means that there is no way
of
correctly printing timezone names for any other date & time except local "now"
time.
-Juha
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python2.6 depends on:
ii libbz2-1.0 1.0.5-4 high-quality block-sorting file co
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdb4.8 4.8.30-1 Berkeley v4.8 Database Libraries [
ii libncursesw5 5.7+20100313-2 shared libraries for terminal hand
ii libreadline6 6.1-3 GNU readline and history libraries
ii libsqlite3-0 3.7.0-1.1 SQLite 3 shared library
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii python2.6-minimal 2.6.6~rc1-1 A minimal subset of the Python lan
python2.6 recommends no packages.
Versions of packages python2.6 suggests:
ii binutils 2.20.1-13 The GNU assembler, linker and bina
ii python2.6-doc 2.6.6~rc1-1 Documentation for the high-level o
pn python2.6-profiler <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]