{{tag>Function Function_List Date_And_Time Version:v8.5}} ====== NEXT_SEQUENCE_TIME ====== ===== Description ===== Defines a time sequence that starts at a particular minute of a particular hour and then occurs every few minutes. Returns “Yes” if the current time coincides with the sequence occurrence. ===== Syntax ===== ''NEXT_SEQUENCE_TIME (id, start, interval)'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== identifier of the time sequence (any text that has to be unique across all sequences), minutes of the hour when the sequence starts and time interval of the sequence in minutes ===== Returns ===== **Yes/No**: 'Yes' if the current time falls on an occurrence of the sequence. ===== Example ===== IF NEXT_SEQUENCE_TIME('SEQ1',0,15) = 'Yes' THEN DoSomething /* this will return Yes at 00, 15, 30 and 45 minutes of every hour */ ===== Related ===== [[ref:a_f:f:af:current_minute|CURRENT_MINUTE]], [[ref:a_f:f:af:current_hour|CURRENT_HOUR]], [[ref:a_f:f:af:minute|MINUTE]]