Hi, was wondering if anyone knows a good algo for rounding time to a
desired interval.
For instance, I have data set that is timestamped in second resolution
and I need to modify that data to be timestamped for an x minute
interval. So if time t = 93601, and x = 5 then t would be rounded up
to 94000... if x were 1, t would equal 93700, etc. All time is integer
based.
Any help would be really appreciated.
Marcus
desired interval.
For instance, I have data set that is timestamped in second resolution
and I need to modify that data to be timestamped for an x minute
interval. So if time t = 93601, and x = 5 then t would be rounded up
to 94000... if x were 1, t would equal 93700, etc. All time is integer
based.
Any help would be really appreciated.
Marcus
Comment