I have a series of datetime.time data, and I want to apply modulo operation on it, converting all data into some intervals.
For example, using a 5-minute interval, datetime.time(11, 38, 27, 785327)
will be converted to datetime.time(11, 35, 0, 0)
How can I accomplish this sort of rounding?