title: Is it possible to call setInterval based on time based?
body: <p>I am displaying live news in my website and for that to get the latest data i am using setInterval for every 9 minutes as shown below </p>
  
  <pre><code>$(document).ready(function() {
      displaylivenews();
      setInterval(displaylivenews, 540000);
  });
  
  
  
  function displaylivenews() {
  alert('calling ajax to getting latest data ');
  }
  </code></pre>
  
  <p>All this works fine , my question is that , if the time is in between 7 Am to 9 AM , i want to call it more frequently that is for every 5 minutes ??</p>
  
  <p>Is it possible to call  setInterval based on time based ??</p>
  
  <p><a href="http://jsfiddle.net/mwv6r0df/" rel="nofollow">http://jsfiddle.net/mwv6r0df/</a></p>