Tinderbox v10 Icon

interval(dataStr)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Date-time  [other Date-time operators]

 Interval

 v9.5.0

 Baseline

 As at baseline


interval(dataStr)

The operator interval(dataStr) converts a string to an interval. For example:

$MyInterval = interval("30:00") 

is an interval of thirty minutes.

The dataStr can be a literal string, String-type attribute value or a string variable. The string must be in Interval, for which see the 'Alternative syntax' section of the Interval data type.) For instance:

	var:number vHr = 21;
	var:number vMin = 14;
	var:string vInterval = vHr+":"+vMin;
	$MyInterval = interval(vInterval);

The two-argument version is documented separately, see interval(start,end): it continues to return the Interval between two Date-type arguments.


See also—notes linking to here: