public void Apply() { if (_minute % 15 != 0) { var result = ""; if (_minute < 30) { result = NumberConvertorHelper.ConvertNumber(_minute); } else { result = NumberConvertorHelper.ConvertNumber(60 - _minute); } _builder[TimePosition.Minutes] = result; } }
public void Apply() { _builder[TimePosition.Hour] = _minute > 30 ? NumberConvertorHelper.ConvertNumber(_hour + 1) : NumberConvertorHelper.ConvertNumber(_hour); }