I have a list of times and I need to get all the elements in the list that have the same hour or minute or second and form them into new lists.
example: list
['10:20:01', '10:20:02', '10:21:00', '10:21:01', '10:22:00', '10:22:01']
out
['10:20:01', '10:20:02']
['10:21:00', '10:21:01']
['10:22:00', '10:22:01']