Author jonathan.cervidae
Recipients jonathan.cervidae
Date 2009-05-11.17:58:25
SpamBayes Score 0.000116162
Marked as misclassified No
Message-id <1242064707.21.0.409196088491.issue5997@psf.upfronthosting.co.za>
In-reply-to
Content
[jon@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@jaydee Development]$ python ./is-strftime-broken.py
Date command returns 11/05/09, strftime returns 05/11/09
History
Date User Action Args
2009-05-11 17:58:27jonathan.cervidaesetrecipients: + jonathan.cervidae
2009-05-11 17:58:27jonathan.cervidaesetmessageid: <1242064707.21.0.409196088491.issue5997@psf.upfronthosting.co.za>
2009-05-11 17:58:25jonathan.cervidaelinkissue5997 messages
2009-05-11 17:58:25jonathan.cervidaecreate