DateTime.ComposeTimeOfDay

Syntax

ComposeTimeOfDay(

Hour: Integer;

Minute: Integer;

Second: Integer;

Millisecond: Integer): DateTime;

Parameters

Hour. Initial hour.

Minute. Initial minute.

Second. Initial second.

Millisecond. Initial millisecond.

Description

The ComposeTimeOfDay method creates a value of time from the specified input parameters.

Example

Sub Main;

Var

DT: DateTime;

Begin

DT := DateTime.ComposeTimeOfDay(14, 20, 5, 15);

End Sub Main;

After executing the example the "DT" variable will contain the time 14:20:05. The value of the date of this variable will be minimum.

See also:

DateTime