How i get groups of Datetimes by interval : i want to cluster the list of dateTimes in the groups.
every times that are near each other in interval of 30 sec for ins.
 12:00:05,
12:00:10,
12:00:15,
12:30:15,
12:30:25

            MainBookmarksList.Add(dt1);
            MainBookmarksList.Add(dt2);
            MainBookmarksList.Add(dt3);
            MainBookmarksList.Add(dt4);
            MainBookmarksList.Add(dt5);

i have a list of the times- MainBookmarksList
now i expect to have a groups like this

12:00:05,
12:00:10,
12:00:15,
********
12:30:15,
12:30:25
thanks in advance


i tried this :

            TimeSpan interval = new TimeSpan(0, 0, 15);

            var groupedTimes = from dt in MainBookmarksList
                               group dt by dt.Ticks / interval.Ticks
                               into g
                               select new { Begin = new DateTime(g.Key * interval.Ticks), Values = g.ToList() };

not what i needed
