Skip to main content

cxTextToMinutes(string,Integer) Method

Converts the AText into an AMinutes numeric representation.

Declaration

function cxTextToMinutes(const AText: string; out AMinutes: Integer): Boolean;

Parameters

Name Type
AText string
AMinutes Integer

Returns

Type
Boolean

Remarks

The cxTextToMinutes function parses the AText string to determine the unit of time measurement. If the time unit determined is different than the minute unit (the function can recognize hour, day and week units) then it converts the given amount of time into minutes.

For example, if the ‘2 weeks‘ or ‘2w‘ string is passed in then a value of 20160 is assigned to the AMinutes parameter.

The function returns a value of True if the conversion was successful.

See Also