Bind events to timestamp in javascript
<p>here is my question:</p>

<p>I've a website that works only during the night (after 21:00 until 24:00)
I have a button that says "Enter", but i want that button to <code>alert()</code> a message such as <code>'The website is not available yet'</code>.</p>

<p>But to do so it must check the time so in pseudocode:</p>

<pre><code>    if (time is less more than 21:00 and less than 24:00) {
     return true;
    } else {
      alert('the website is not available yet');
      e.preventDefault;
      return false;
    }
</code></pre>

<p>But I don't understand how I can do that in terms time difference, in <strong>any</strong> day,
any hint?</p>

<p>thank you guys!</p>
