setTimeStrict

setTimeStrict(hours:          Integer;
              minutes:        Integer;
              seconds:        Integer;
              milliseconds:   Integer): Boolean updating;

The setTimeStrict method of the Time primitive type checks that the hours, minutes, seconds, and milliseconds specified in the method parameters are within the range of time in the HH:MM:SS:sss (24-hour clock form) format.

If any of the specified parameters is outside the range of the HH:MM:SS:sss time format (that is, a value that is greater than 23 hours, 59 minutes, 59 seconds, or 999 milliseconds), this method returns false and sets the receiver to the specified "invalid" time.

Use the Time primitive type setTime method to set the value of the receiver in 24-hour clock form to a specified time using any valid combination of parameters.