ExcelFormulaParser.Engine.Excel.Functions.DateTime.TimeStringParser.ValidateValues C# (CSharp) Method

ValidateValues() private method

private ValidateValues ( int hour, int minute, int second ) : void
hour int
minute int
second int
return void
        private void ValidateValues(int hour, int minute, int second)
        {
            if (second < 0 || second > 59)
            {
                throw new FormatException("Illegal value for second: " + second);
            }
            if (minute < 0 || minute > 59)
            {
                throw new FormatException("Illegal value for minute: " + minute);
            }
        }