time challenge

N

nephish

Hey there,
i am doing a plotting application.
i am using mxRelativeDateTimeDiff to get how much time is between
date x and date y

now what i need to do is divide that time by 20 to get 20 even time
slots
for plotting on a graph.

For example, if the difference between them is 20 hours, i need 20
plots, each an hour apart. if its 40 minutes, i need 20 plots that are
2 minutes apart.

what would be a way i could pull this off?

thanks
 
S

Scott David Daniels

nephish said:
i am doing a plotting application....> If its 40 minutes,
> i need 20 plots that are 2 minutes apart.
what would be a way i could pull this off?

thanks

Sounds like homework related to another assignment discussed above.
Write your code, try to get it to work, and _then_ if you have
problems ask "smart questions" here about specific issues you have
with getting your code to work.

See:
http://www.catb.org/~esr/faqs/smart-questions.html

-Scott David Daniels
(e-mail address removed)
 
B

Bengt Richter

Hey there,
i am doing a plotting application.
i am using mxRelativeDateTimeDiff to get how much time is between
date x and date y

now what i need to do is divide that time by 20 to get 20 even time
slots
for plotting on a graph.

For example, if the difference between them is 20 hours, i need 20
plots, each an hour apart. if its 40 minutes, i need 20 plots that are
2 minutes apart.

what would be a way i could pull this off?

thanks

This post of yours:

Date: Thu, 22 Sep 2005 08:11:26 -0500
From: nephish <[email protected]>
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: (e-mail address removed)
Subject: time challenge

Four minutes prior:

From: (e-mail address removed)
Newsgroups: comp.lang.python
Subject: need to divide a date
Date: 22 Sep 2005 06:07:50 -0700

Same post body, except an extra blank line at the top of this one.

Please don't do that unless, after waiting a decent amount of time
with no response, you think the lack of response was due to the
bad wording of the title. Your first post got a response, the second
had a worse title ("time challenge").

Regards,
Bengt Richter
 
N

nephish

sorry about that, i got a message in my inbox that said that the post
was rejected
so i tried it from my email client.

wont happen again.
shawn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,005
Latest member
ChasityFan

Latest Threads

Top