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 & HelpSyntax Questions › change time so that it will countdown to an event
Poll Poll
Question: change time so that it will countdown to an event

changing the actual time    
  1 (33.3%)
changing the time by other route    
  2 (66.7%)




Total votes: 3
« Created by: jjmatthews on: Oct 12th, 2009, 5:06am »

Page Index Toggle Pages: 1
change time so that it will countdown to an event (Read 2016 times)
change time so that it will countdown to an event
Oct 12th, 2009, 5:06am
 
i have just started using processing at university and i was just wondering if you could change time so that it will countdown to a certain event?
Re: change time so that it will countdown to an event
Reply #1 - Oct 12th, 2009, 6:00am
 
Well, the time is the same for us all (alas), flowing at the rate of 60 seconds per minute. I don't see how you can change it, except perhaps with a DeLorean and some lightening bolts...  Tongue

Seriously, I don't see what you are meaning. But there are a number of countdown timers on the forum, perhaps they can get you started.
Re: change time so that it will countdown to an event
Reply #2 - Oct 12th, 2009, 7:30am
 
thanks, what i am wanting to do is to set the countdown going and let it countdown to an event that i specify so for example it counts down in hours, minutes and seconds to when the football premiership finishes.
Re: change time so that it will countdown to an event
Reply #3 - Oct 12th, 2009, 7:41am
 
You want this : http://evan-roth.com/michael-jackson-public-domain-countdown.php

source code is available for download there too
Re: change time so that it will countdown to an event
Reply #4 - Oct 12th, 2009, 7:52am
 
PhilLo, his question will still be here when he comes back to the present :P

Quote:
println(year() + ", " + month() + ", " + day() + ", " + hour() +":" + minute() + ":" + second() + ":" + millis());


Those are all ints, which you can track using relational operators (==, >, <, <=, >=)...or display in terms of ( targetDay - day() )
Page Index Toggle Pages: 1