title: Powershell Contiguous Date summary
body: <p>From this object (and others like it):</p>
  <pre><code>    $Times = @(
      &quot;12:00 AM&quot;,
      &quot;1:00 AM&quot;,
      &quot;2:00 AM&quot;,
      &quot;3:00 AM&quot;,
      &quot;4:00 AM&quot;,
      &quot;5:00 AM&quot;,
      &quot;6:00 AM&quot;,
      &quot;7:00 AM&quot;,
      &quot;8:00 AM&quot;,
      &quot;9:00 AM&quot;,
      &quot;10:00 AM&quot;,
      &quot;11:00 AM&quot;,
      &quot;12:00 PM&quot;,
      &quot;1:00 PM&quot;,
      &quot;2:00 PM&quot;,
      &quot;3:00 PM&quot;,
      &quot;4:00 PM&quot;,
      &quot;5:00 PM&quot;,
      &quot;6:00 PM&quot;,
      &quot;7:00 PM&quot;,
      &quot;8:00 PM&quot;,
      &quot;9:00 PM&quot;,
      &quot;10:00 PM&quot;,
      &quot;11:00 PM&quot;
  )
  
  $Example = @()
  $times | % {$time = $_; $Example += [pscustomobject]@{Day = 'Sunday'; Time = $time;RatelimitingSchedule = '100'}}
  
  $Example[5].RatelimitingSchedule = '50'
  6..20 | % {$Example[$_].RatelimitingSchedule = '10'}
  $Example[21].RatelimitingSchedule = '50'
  
  $Example
  </code></pre>
  <p>This produces output like this:
  <a href="https://i.stack.imgur.com/6Opbg.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>My question is, how can i massage that into this summarized form (in the order shown):</p>
  <ul>
  <li>between 5am and 6am, 50% Rate limiting</li>
  <li>between 6am and 9pm, 10% Rate limiting</li>
  <li>between 9pm and 10pm, 50% Rate limiting</li>
  <li>between 10pm and 5am, 100% Rate limiting</li>
  </ul>
  <p>Any assistance most welcome!</p>