title: Create new text at specific time
body: <p>Is there a way to create a random number at a specific time?</p>
  <p>For example on Monday at 7.30am &quot;number1&quot; should be shown.</p>
  <p>On Monday 8.30 &quot;number2&quot; should be shown.</p>
  <p>On Monday at 9.30 &quot;number3&quot; should be shown.</p>
  <p>All I found is
  <a href="https://www.askdavetaylor.com/can_i_change_my_web_page_based_on_time_of_day/" rel="nofollow noreferrer">https://www.askdavetaylor.com/can_i_change_my_web_page_based_on_time_of_day/</a>
  but I can't make it work for my problem.</p>
  <p>I can't make the minute part work.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript"&gt;
  var thedate   = new Date();
  var dayofweek = thedate.getUTCDay();
  var hourofday = thedate.getUTCHours();
  var minutesday = thedate.getMinutes();
      
      
  function Stunde1()
  {
  // return TRUE if it's Mon through Sat, 3a-6a UTC
  if (dayofweek != 2 &amp;&amp; (hourofday &gt;7 &amp;&amp; hourofday &lt;8) &amp;&amp; (minutesday &gt;31) ) 
  { return true;}
  return false; }
      
  function Stunde2()
  {
  // return TRUE if it's Mon through Sat, 3a-6a UTC
  if (dayofweek != 2 &amp;&amp; (hourofday &gt; 7 &amp;&amp; hourofday &lt; 9) &amp;&amp; (minutesday &gt;31) ) 
  { return true;}
  return false; }
      
  function Stunde3()
  {
  // return TRUE if it's Mon through Sat, 3a-6a UTC
  if (dayofweek != 2 &amp;&amp; hourofday &gt; 9 &amp;&amp; minutesday &gt;30 &amp;&amp; hourofday &lt;11 ) 
  { return true;}
  return false; }
      
  function Stunde4()
  {
  // return TRUE if it's Mon through Sat, 3a-6a UTC
  if (dayofweek != 2 &amp;&amp; (hourofday &gt; 11 &amp;&amp; hourofday &lt; 13) &amp;&amp; (minutesday &lt;31) ) 
  { return true;}
  return false; }
  &lt;/script&gt;
  
  
  
  &lt;script type="text/javascript"&gt;
  if (Stunde1()) { document.write("&lt;h2&gt;Stunde1&lt;/h2&gt;");} 
  else if (Stunde2()) { document.write("&lt;h2&gt;Stunde2&lt;/h2&gt;");} 
  else if (Stunde3()) { document.write("&lt;h2&gt;Stunde3&lt;/h2&gt;");} 
  else if (Stunde4()) { document.write("&lt;h2&gt;Stunde4&lt;/h2&gt;");} 
  else {
  document.write("&lt;h2&gt;kaputt&lt;/h2&gt;");
  }
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>