TimeSpan.Parse

Syntax

Parse(Value: String): TimeSpan;

Parameters

Value. The value that must be converted into the TimeSpan type.

Description

The Parse method converts a string value into the TimeSpan type.

Comments

The value passed by the Value parameter must have the following format: "<Number of days>.<Number of hours>:<Number of minutes>:<Number of seconds>.<Number of milliseconds>".

Example

Sub UserProc;
Var
    t: TimeSpan;
Begin
    t := TimeSpan.Parse("0.00:01:00.000");
End Sub UserProc;

After executing the example the "t" variable contains the time interval obtained by converting from the specified character value.

See also:

TimeSpan