This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

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.