title: How to split a list of DateTime based on the time differences found within the entries?
body: <p>I have a list that contains deserialized objects, and within those objects is a DateTime field. The times goes up sequentially in seconds but there will be instances where there is a time differnce of more than 4 seconds from one entry to the next, and then continues from there. </p>
  
  <pre><code>/* List example:
  
      26/11/2019 10:26:01
      26/11/2019 10:26:02
      26/11/2019 10:26:03
      26/11/2019 10:26:04
      26/11/2019 10:26:30 // difference detected, subdivide into new list
      26/11/2019 10:26:31
      26/11/2019 10:26:40 // difference detected, subdivide into new list
      26/11/2019 10:26:41
      26/11/2019 10:26:42
      26/11/2019 10:26:43
  */
  </code></pre>
  
  <p>So what I want to do is iterate through this big list and then sub-divide those entries into smaller list but I'm unsure how to do this. My initial thought would be to create a for-loop and then individually compare the datetimes to see if there's a 4 second difference, but I can already tell that will take forever. </p>
  
  <p>Would like some suggestions.</p>
  
  <p>Thanks</p>