[New-bugs-announce] [issue5997] strftime is broken

Jonathan report at bugs.python.org
Mon May 11 19:58:27 CEST 2009


New submission from Jonathan <jonathan.cervidae at gmail.com>:

[jon at jaydee Development]$ cat is-strftime-broken.py
#!/usr/bin/env python
import subprocess
import time
date_process = subprocess.Popen(
    ("date", "+%x"), stdout=subprocess.PIPE)
from_date_command = date_process.communicate()[0].rstrip()
from_strftime = time.strftime("%x")
print "Date command returns %s, strftime returns %s" % (
    from_date_command, from_strftime )
[jon at jaydee Development]$ python ./is-strftime-broken.py
Date command returns 11/05/09, strftime returns 05/11/09

----------
components: Library (Lib)
messages: 87582
nosy: jonathan.cervidae
severity: normal
status: open
title: strftime is broken
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5997>
_______________________________________


More information about the New-bugs-announce mailing list