Icon EncodeTime

Unit: Internal

Available In: Client and Server Applications

function EncodeTime(Hour: Integer; Minute: Integer; Second: Integer; MSecond: Integer;
                     UTC: Boolean=False): Integer

The EncodeTime function returns the local or UTC time from the hour, minute, second, and millisecond input parameters. The return value is a DateTime value.

Examples

X := TimeToStr(EncodeTime(12,10,0,0));  // X is '12:10 PM'
Image