Ive been looking for a proper rounding mechanism but nothing I find seems to be exactly what I need.
I need to round up and round down seperately and I also need to acco
How about:
case RoundingDirection.Up: t = dt.AddMinutes((60 - dt.Minute) % 10); case RoundingDirection.Down: t = dt.AddMinutes(-dt.Minute % 10);
Demo: http://ideone.com/AlB7Q