ScriptCore3.TryEncodeTime

function TryEncodeTime(Hour, Min, Sec, MSec: Word; var Date: TDateTime): Boolean; Hour: Hours to be encoded Min: Minutes to be encoded Sec: Seconds to be encoded MSec: Miliseconds to be encoded Date: Encoding result Result: whether conversion has been successfull;

Description
This function is equivalent to, however, it allows to check whether encoding has been successfull.