TotalDays: Double;
The TotalDays property returns length of time interval in days.
Sub Main;
Var
t: TimeSpan;
Begin
t := TimeSpan.Compose(1, 10, 15, 33, 7);
Debug.WriteLine(t.Days);
Debug.WriteLine(t.TotalDays);
End Sub Main;
After executing the example a new time interval is obtained. The development environment console displays the number of full days in the time interval and the interval length in days.
1
1,4274653587963
See also: