Between 11pm and 7am in Javascript
<p>What's the best way to do a simple return function to check if it's between 11pm and 7am?</p>

<p>Had something like this in mind, but the problem with this is that 1am would be 1 and that wouldn't be greater than 23, but 23 (11pm) would be.</p>

<pre><code>return (((new Date()).getHours() &gt;= 23) &amp;&amp; ((new Date()).getHours() &lt;=7))
</code></pre>
