I need to create a recurring count down clock that counts down to 6:00pm every day. I am really struggling to do this. I can create a count down to a date but not a reacurring every day cound down.
Can anyone here help with this?
I need to create a recurring count down clock that counts down to 6:00pm every day. I am really struggling to do this. I can create a count down to a date but not a reacurring every day cound down.
Can anyone here help with this?
□ΞVΞ□
Found a Timer info bit on the Oracle site for Java, looks like it could help you out a bit, I dont do programming though. Worth a look though, the description seems to fit what you are wanting to do.
http://download.oracle.com/javase/6/...til/Timer.html
Also found an excellent post on the Java forums, granted its from 2007 but looks like it has relevant info :
http://www.java-forums.org/new-java/...sing-java.html
Look at the bottom post in that link.
I've been doing Java development for about 10 years, so could probably help, but I'm not sure what you mean.
Do you want it as a GUI, a console app, or just a class that you can ask for the current count down time?
And how should the output be formatted? If the time is 12:00:01, do you want a string like "05:59:59" (or the equivalent output in a GUI?)
Actually, you can probably knock this up in Javascript on a web page - it's just a fixed function of the current time.
If you can create a count down to a date, can't you just use that and set the 'to' date ahead 24 hours every time you hit 6pm?
To err is human. To really foul things up ... you need a computer.
There are currently 1 users browsing this thread. (0 members and 1 guests)