Tinderbox 7 Icon

interval(date1,date2)


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]

 Baseline

 


interval(date1,date2)

The function interval(start,end) returns the Interval between two dates. For example,

interval($Created,$Modified) 

returns the interval between a note’s initial creation and its most recent modification.

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

if(interval($DateA,$DateB)=="00:00"){... 

The latter gets around the fact that == and != operators match Date-type attributes only at day scope.