title: How to display TimeSpan on 30 minute intervals
body: <p>I have an array of timespans that are in 15 minute intervals, e.g.:</p>
  <blockquote>
  <p>00:00:00,</p>
  <p>00:15:00,</p>
  <p>00:30:00,</p>
  <p>00:45:00,</p>
  <p>01:00:00</p>
  </blockquote>
  <p>etc.</p>
  <p>I want to loop through and only show those which are of a 30 minute interval. I've tried using the <code>.compare</code> but this doesn't get exactly what I need.</p>
  <p>For example:</p>
  <pre><code>var interval = TimeSpan.FromMinutes(30);
  foreach(var t in MyArray)
  {
      if(TimeSpan.Compare(inteval, t.Time) == 0)
          Do something
      }
  }
  </code></pre>
  <p>This technically works, but would only match <code>00:30:00</code>. I can add the interval to the loop and use something like:</p>
  <pre><code>var interval = new TimeSpan(t.Hour, 30, 0)
  </code></pre>
  <p>but that only gets <code>00:30:00</code>, <code>01:30:00</code>.</p>
  <p>Is there as way to make the hour like a wildcard and get every 30 min?</p>
  <p>The output I'd want is:</p>
  <blockquote>
  <p>00:00:00</p>
  <p>00:30:00</p>
  <p>01:00:00</p>
  <p>01:30:00</p>
  </blockquote>
  <p>etc.</p>