Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to convert the date object 2010-11-10 14:52:35.026000 to integer?

1 view
Skip to first unread message

Zeynel

unread,
Nov 10, 2010, 10:40:37 AM11/10/10
to
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.

Message has been deleted
0 new messages