StrToRelTimeEx

StrToRelTimeEx

%StrToRelTimeEx function


Function

The function converts a text string to a value of Relative time type according to a given mask.

Declaration

REAL %StrToRelTimeEx( TEXT in String1, TEXT in String2 )

Parameters

string1

Text string.

string2

Mask.

Description

Mask (the parameter String2) used in the function is extended as follows:

  1. the number of days can be defined:
    - d
    - dd
    - ddd
    - dddd

  2. the number of hours can be defined:
    - h
    - hh
    - hhh
    - hhhh

Example

%StrToRelTimeEx("17:03:16", "hh:mi:ss")