FromDouble(Value: Double);
Value - real value that must be converted to the time interval format.
The FromDouble method returns the date and time value obtained by conversion from the Double format.
Sub Main;
Var
t: TimeSpan;
Begin
t := TimeSpan.FromDouble(1.5);
Debug.WriteLine(t.ToString);
End Sub Main;
After executing the example the development environment console displays the value of a time interval obtained by conversion from the Double format.
See also: