TryEncodeTime function
Try to encode a time, and indicate success.
Declaration
function TryEncodeTime(Hour: Word; Min: Word; Sec: Word; MSec: Word;
out Time: TDateTime): BooleanDescription
TryEncodeTime will check the validity of the
Hour,
Min,
Sec and
MSec arguments, and will
encode them in a
TDateTime value which is returned in
Time. If the arguments are valid, then
True is returned,
otherwise
False is returned.Errors
None. If an error occurs during the encoding,
False is returned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
