Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to convert the date object 2010-11-10 14:52:35.026000 to integer?

Reply
Thread Tools

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

 
 
Zeynel
Guest
Posts: n/a
 
      11-10-2010
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.
 
Reply With Quote
 
 
 
 
rantingrick
Guest
Posts: n/a
 
      11-10-2010
On Nov 10, 9:40*am, Zeynel <(E-Mail Removed)> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
convert Julian date to Gregorian date Sam ASP .Net 1 04-27-2005 01:12 PM
Convert Julian Date to VB.NET date =?Utf-8?B?UmFqYQ==?= ASP .Net 1 11-12-2004 06:08 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
convert gregorian date to jalay date h_ghanaty ASP .Net 1 11-09-2003 06:02 AM



Advertisments