collections/time_bucket_utils library

Time-bucketed aggregation — roadmap #468.

Functions

bucketByTime(List<DateTime> events, Duration bucketSize) Map<DateTime, int>
Groups events (DateTime) into buckets of bucketSize; returns map of bucketStart -> count.