> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Arnett
[snip]
> What seemed to be the obvious solution was to use
> MySQLdb.times.format_TIMESTAMP() or MySQLdb.times.format_DATE()-- but that
> doesn't work, it returns an error:
>
> File "C:\Python22\Lib\site-packages\MySQLdb\times.py", lin
> STAMP
> return d.strftime("%Y-%m-%d %H:%M:%S")
> AttributeError: 'tuple' object has no attribute 'strftime'
I was nailed by a typo -- the above actually *does* work, if one is careful
to use the function on the appropriate list member, rather than the entire
list.
But it still seems inelegant...
Nick
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php