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);
}
}