Tinderbox v9 Icon


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Date-time   [other Date-time operators]




The function interval(start,end) returns, in Interval data-type form, the time interval between two Date-type dates. For example, to test the interval between a note's initial creation and its most recent modification and to then store it in an Interval-type attribute:

$MyInterval = interval($Created,$Modified); 

The interval() function can be used to test the exact equivalence of two Date-type attribute values, using the full Date and time. Thus:


The latter gets around the fact that == and != operators match Date-type attributes only at day scope rather than the actual date-time values.