What Marty said for your first case below. For the second case use new Date() to get the current time and date then add your 12:02.56 to that value then extract the hour, minute and second for that time in the future and create a new job for that time
So if current time is Dec 31 2004 23:00.00 then the runtime will have to be JobEntry je = new JobEntry(56,2,11,-1,-1,"SimpleScheduledTask"); JobEntry je = new JobEntry(56,2,12,-1,1,"SimpleScheduledTask"); But this will run every 1st of the month at that time. If you want it to run once only then either the job that runs needs to have code to remove this scheduled task after it has run or you use the more sophisticated Quartz scheduler as an Avalon component, it allows one shot jobs. David. -----Original Message----- From: Kintzel Levente [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:52 To: [email protected] Subject: Turbine Scheduler Service Hi! I have a question related to the Turbine Scheduler Service. I have written a task that will be executed periodically. My question is how to set the fields form the database to specify that this task will be executed daily. I didn't understand how can I: - specify that a task will be executed after an amount of time (after 12:hours, 2:mins, 56:sec) - secify that a task will be executed daily at 12:02:56 How can I specify in the database which of the two situation I want to use. Can anybody help me? Thank you! Regards, Levi --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
