Halting program execution between certain hours of the week
<p>I am writing a Java program that is required to copy files and folders between the following hours:</p>

<pre><code>Mon - 18:00 to 06:30
Tue - 18:00 to 06:30
Wed - 18:00 to 06:30
Thu - 18:00 to 06:30
Fri - 18:00 to 06:30
Sat - all day
Sun - all day
</code></pre>

<p>The program will run <strong>continuously</strong> until it has finished copying all files and folders. However, outside of the above hours the program should just sleep.</p>

<p>I am using a properties file to store the above settings.</p>

<p><strong>UPDATE</strong></p>

<p>I am looking for the simplest possible implementation including the format of the properties in the properties file as well as the code that will make the checks.</p>
