コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public void Apply()
 {
     _builder[TimePosition.Hour] = _minute > 30
         ? NumberConvertorHelper.ConvertNumber(_hour + 1)
         : NumberConvertorHelper.ConvertNumber(_hour);
 }