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 UserProc;
Var
    DT: DateTime;
Begin
    DT := DateTime.ComposeTimeOfDay(1420515);
End Sub UserProc;

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

See also:

DateTime