We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › converting hours minutes to be used in a graph
Page Index Toggle Pages: 1
converting hours minutes to be used in a graph (Read 316 times)
converting hours minutes to be used in a graph
Sep 29th, 2008, 3:42am
 
Hi, im working on a graph where i have the days of a month at the x axis and the hours from 0:00 to 23:59 at the y axis...

i got a list where different events are stored with their time and date and now i want to add an ellipse at this point to the graph... the days are no problem as i can read what date it is and just move the ellipse x days to the right along the x axis... but how can i do the same with the hours and minutes.... the time is red in hours and minutes. for example. 10:10 or 22:39 and so on... but i cant just take
1010 and 2239 cause if i do so it jumps from 1059 to 1100 cause there are not more then 60 minutes an hours. So as long nobody is going to change this, i guess i have to find a workarround... how can i convert the time to map it to the y graph?

Sorry for my bad english, and thanks for your help...

jazz
Re: converting hours minutes to be used in a graph
Reply #1 - Sep 29th, 2008, 12:45pm
 
You can simply work in minutes... e.g. 10:59 is (10*60)+59 == 659, and 11:00 is (11*60)+0=660
Re: converting hours minutes to be used in a graph
Reply #2 - Sep 29th, 2008, 3:01pm
 
Great! Thank you so much
Page Index Toggle Pages: 1