TimeSpan.TotalSeconds

Syntax

TotalSeconds: Double;

Description

The TotalSeconds property returns length of time interval in seconds.

Example

Sub Main;

Var

t: TimeSpan;

Begin

t := TimeSpan.Compose(1, 10, 15, 33, 7);

Debug.WriteLine(t.Seconds);

Debug.WriteLine(t.TotalSeconds);

End Sub Main;

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

33

123333,007

See also:

TimeSpan