title: Split Time range into multiple time periods based on interval in Python
body: <p>I have a time-range and an interval, I need to split the time range into multiple time periods based on interval value.</p>
  <p>For example, time range is 9:30 to 11:30 and the interval is 30, the output time periods should be in a list as datetime objects</p>
  <p><strong>Output:</strong></p>
  <pre><code>[
  2020-08-24 9:30 - 2020-08-24 10:00,
  2020-08-24 10:00 - 2020-08-24 10:30 
  2020-08-24 10:30 - 2020-08-24 11:00, 
  2020-08-24 11:00 - 2020-08-24 11:30
  ]
  </code></pre>