Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ryehIf I understand your problem correctly, you need to use the timeSubtract function to see if the difference between two time fields are greater than 1. Copy and paste the text between the lines of *'s into a graph to see an example.
*********************
node:Static_Data
bretype:core::Static Data
editor:sortkey=541a246334751380
output:@40fe6c55598828e5/=
prop:StaticData=<<EOX
time1, time2
8:15:01,8:15:02
18:15:01,18:15:03
EOX
editor:XY=100,210
end:Static_Data
node:Filter
bretype:core::Filter
editor:sortkey=541a24a3559a2685
input:@40fd2c74167f1ca2/=Static_Data.40fe6c55598828e5
output:@40fd2c7420761db6/=
prop:Script=<<EOX
time1 = time1.time("H:M:S")
time2 = time2.time("H:M:S")
if timeSubtract(time2, time1) > 1
then match = 0
else match = 1
emit time1, time2, match
EOX
editor:XY=200,210
end:Filter
*********************