TimeSpan.FromDouble

Syntax

FromDouble(Value: Double);

Parameters

Value. The real value that should be converted to date and time format.

Description

The FromDouble method returns time interval value obtained by conversion from the Double format.

Example

Sub UserProc;
Var
    t: TimeSpan;
Begin
    t := TimeSpan.FromDouble(1.5);
    Debug.WriteLine(t.ToString);
End Sub UserProc;

After executing the example the development environment console displays the value of a time interval obtained by conversion from the Double format.

See also:

TimeSpan