TimeSpan.Hours

Syntax

Hours: Integer;

Description

The Hours property returns the number of full hours in the time interval.

Example

Sub UserProc;
Var
    t: TimeSpan;
Begin
    t := TimeSpan.Compose(11015337);
    Debug.WriteLine(t.Hours);
    Debug.WriteLine(t.TotalHours);
End Sub UserProc;

After executing the example a new time interval is obtained. The development environment console displays the number of full hours in the time interval and the interval length in hours.

10

34,2591686111111

See also:

TimeSpan