title: Countdown timer every hour but on 30 minute marks
body: <p>I need a simple countdown timer, but it is really bugging me that I can't seem to get it for some reason, and I think it's because of the special way I need it done, it has to adhere to these rules:</p>
  
  <ul>
  <li>Must be every hour</li>
  <li>Must be on the 30 minute mark</li>
  <li>Must use UTC time</li>
  </ul>
  
  <p>So for instance, it is 07:22 UTC, it would be 8 minutes till the next one.<br>
  If it were say, 07:30, it would say 1 hour till the next one.<br>
  And last but not least, if it were 07:31, it would say 59 minutes till the next one.</p>
  
  <p>I was able to do this very easily for other countdowns I made, but those were for on the hour type things, it wasn't this complicated... I'm just stumped big time, please help me.</p>
  
  <p><strong>EDIT</strong>
  Added sample code</p>
  
  <pre><code>        var d = new Date();
          var hoursUntil = 2 - d.getUTCHours() % 3;
          var minutesUntil = 60 - d.getUTCMinutes();
  
          var timestr = "";
  
          if (minutesUntil === 60) {
              hoursUntil++;
              minutesUntil = 0;
          }
  
          if (hoursUntil &gt; 0) {
              timestr += hoursUntil + " hour" + (hoursUntil &gt; 1 ? "s" : "");
          }
  
          if (hoursUntil &gt;= 1 &amp;&amp; minutesUntil &gt; 1) {
              timestr += " and " + minutesUntil + " minute" + (minutesUntil &gt; 1 ? "s" : "");
          }
  
          if (minutesUntil &gt; 1 &amp;&amp; hoursUntil &lt; 1) {
              timestr += minutesUntil + " minute" + (minutesUntil &gt; 0 &amp;&amp; minutesUntil &lt; 2 ? "" : "s");
          }
  
          bot.sendMessage(msg, "Next event will be in " + timestr + ".");
  </code></pre>