DateTime.Hour

Syntax

Hour: Integer;

Description

The Hour property returns the number of hours from the current variable.

Example

Sub Main;

Var

DT: DateTime;

i: Integer;

Begin

DT := DateTime.Now;

i := DT.Hour;

End Sub Main;

After executing the example the "i" variable will contain the number of hours of the current time.

See also:

DateTime