cHEo
asked on
Timer
1. I want to schedule a process to run at 12 midnight everyday. How do I do that by using Timer object? Or is there any other way? Sample code will be much helpful.
2. I use Timer.schedule(TimerTask task, Date time) function, but having problem to define the Date parameter. ex. I want to run it on 2002/04/30,
Date time = new Date(102,4,30), this doesn't work.
Thank you!
2. I use Timer.schedule(TimerTask task, Date time) function, but having problem to define the Date parameter. ex. I want to run it on 2002/04/30,
Date time = new Date(102,4,30), this doesn't work.
Thank you!
Listening.
ASKER
where can I get some example for this topic in the web?
Providing URL will be great
Providing URL will be great
ASKER
where can I get some example for this topic in the web?
Providing URL will be great
Providing URL will be great
Try this: http://java.sun.com/docs/books/tutorial/essential/threads/timer.html , http://www.math.fu-berlin.de/~rene/www/java/tutorial/ui/swing/timer.html but it would be interesting to listen to other peoples' opinions.
ASKER
where can I get some example for this topic in the web?
Providing URL will be great
Providing URL will be great
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oops, girionis, sorry about that link O:-)
It's all right :-)