Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Calculate the Timespan with wxDateTime

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


jadethacker at hotmail

Oct 15, 2004, 2:59 PM

Post #1 of 3 (433 views)
Permalink
Calculate the Timespan with wxDateTime

I am a newbie of python. I just started to look at the wxDateTime in
wx and wanted to know how to use the AddTS method to calculate the
timespan. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list


peter at engcorp

Oct 16, 2004, 10:31 AM

Post #2 of 3 (385 views)
Permalink
Re: Calculate the Timespan with wxDateTime [In reply to]

mee-shell wrote:
> I am a newbie of python. I just started to look at the wxDateTime in
> wx and wanted to know how to use the AddTS method to calculate the
> timespan. Thanks.

Do you have to use wxDateTime, or are you just specifying
the implementation because you thought it would help?

There is a datetime module in the standard Python library
that can probably do what you want instead.

If you don't get the help you need, you might consider
posting again with actual examples of what you are
talking about (i.e. input and desired output) so nobody
has to guess.

-Peter
--
http://mail.python.org/mailman/listinfo/python-list


timr at probo

Oct 19, 2004, 11:55 PM

Post #3 of 3 (391 views)
Permalink
Re: Calculate the Timespan with wxDateTime [In reply to]

jadethacker [at] hotmail (mee-shell) wrote:

>I am a newbie of python. I just started to look at the wxDateTime in
>wx and wanted to know how to use the AddTS method to calculate the
>timespan. Thanks.

I'd like to expand a bit on what Peter said.

wxWidgets includes a vast array of functionality, much of which already
exists in Python. Rather than waste time porting stuff that won't be used,
wxPython only implements those part of wxWidgets that do not already have
good Python implementations.

I would suggest you look into mxDateTime. It will do what you want easily.
--
- Tim Roberts, timr [at] probo
Providenza & Boekelheide, Inc.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.