private static HoursMinutesSecondsChange PartChange(HoursMinutesSecondsChange currentValue,DateTimeDigits first,DateTimeDigits second,HoursMinutesSecondsChange firstValue,HoursMinutesSecondsChange secondValue) { var digitChange = first - second; if (digitChange.HasFlag(DigitChange.First)) { currentValue |= firstValue; } if (digitChange.HasFlag(DigitChange.Second)) { currentValue |= secondValue; } return currentValue; }