Defining a frequency to run a process

Hello,

I need to do the following calculation. A batch has to be run if Now() follows these conditions:

-----------------------

Every day (Tickbox) Monday(Tickbox) Tuesday(Tickbox) Wendsday(Tickbox) Thursday(Tickbox) Friday(Tickbox) Saturday(Tickbox) Sunday(Tickbox)

Every (specify time, for example, 1 hour or 15 minutes)

Between StartDate(A date) EndDate(A date)

( the user can select any combination)

--------------------------

Do you understand what I mean? I need to find a way to do this calculation, which is free, in Java ( a library). and I was wondering there must be a java class to do it.

I need a library to do this.

Thanks.