Group an Array by time duration given. Allows the coder for example to group an array by 3.5 minute intervals into groups.