I take the difference between two DateTime fields, and store it in a TimeSpan variable, Now I have to round-off the TimeSpan by the following rules:
if the minutes i
You can use
double v = span.TotalHours; v = Math.Round(v, MidpointRounding.AwayFromZero); span = TimeSpan.FromHours(v);
It depends on whether I understood your rules for negative values correctly.