Hi !
Try :
import datetime
date1 = datetime.datetime(2005,01,01,8,20,0)
print date1.strftime('%Y-%m-%d %H:%M:%S')
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
he he. yep, just spent a lot of time on this one.
life moves on.
cheers!
sk
--
http://mail.python.org/mailman/listinfo/python-list
On 30 Aug 2005 10:54:29 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> i feel like a complete idiot.
Now don't go and do that. Mistakes happen.
--
Kristian
kristian.zoerhoff(AT)gmail.com
zoerhoff(AT)freeshell.org
--
http://mail.python.org/mailman/listinfo/python-list
OH my god.
youre right.
i feel like a complete idiot.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On 30 Aug 2005 10:42:41 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey there,
> could someone show me where i am going wrong here?
>
> >>> date1 = '2005-01-01 8:20:00'
> >>> date1 = strptime('%Y-%m-%d %H:%M:%S',date1)
>
> raise ValueError("time data did not match format: data=%s fmt=