TimeSpan.FromDouble

Syntax

FromDouble(Value: Double);

Parameters

Value - real value that must be converted to the time interval format.

Description

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

Example

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:

TimeSpan