File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Schedule a Timer for (starting Date, No of times, no of days) problem

 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have a TimerTask which need to be scheduled for conditions such as

1) Start Date and Time

2) Frequency (no of times it needs to be run)

3) Day/Month/Year

No 3 is actually a combo box in the UI.

If Day is selected then and Frequency is 5 means - Start from the Starting date and run for the next 5 days.

Similarly if Month is selected - Start from the Starting date and run for the next Five months.

Similarly for the year.

Now how can I specify in schedule() method of the Timer object so that it can accomplish the above objective.

Please help me out from this problem.

Thanks for your comments.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duplicate thread. Answered HERE.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic