How to convert the date object 2010-11-10 14:52:35.026000 to integer?
rantingrick
rantingrick at gmail.com
Wed Nov 10 10:53:41 EST 2010
On Nov 10, 9:40 am, Zeynel <azeyn... at gmail.com> wrote:
> mDATE = "2010-11-10 14:52:35.026000"
>
> (Not sure if this is string or something else.)
>
> I would like to convert mDATE to integer to add, multiply etc.
>
> For instance, if I try to convert mDATE to seconds
>
> td = mDATE.seconds
>
> I get the error
>
> td = result.mDATE.seconds
> AttributeError: 'datetime.datetime' object has no attribute 'seconds'
>
> Thanks.
No group likes when you ask the same question twice in two different
threads. faus pas! Go back and check your other thread for
enlightenment.
More information about the Python-list
mailing list