Reputation: 193
I have used java.util.Timer to schedule TimerTask to be run every 2 hours .
But how do I schedule a task to run say everynight at 2 am ?
This might be something easy, I am just overlooking something I guess.
Thanks in Advance
Upvotes: 0
Views: 1010
Reputation: 23229
Call
timer.scheduleAtFixedRate(task, twoAmDate, twentyFourHoursInMillis )
on java.util.Timer
Upvotes: 1