DateTime.IsInNextNSeconds

This function determines if the provided datetime value (dateTime) falls within the next specified number of seconds according to the current date and time on the system. It should be noted that the f...

Syntax

DateTime.IsInNextNSeconds(dateTime as any, seconds as number) as nullable logical

About

This function determines if the provided datetime value (dateTime) falls within the next specified number of seconds according to the current date and time on the system. It should be noted that the function will return false if the value falls within the current second. Arguments: - dateTime: The datetime or datetimezone value to be checked. - seconds: The number of seconds to be considered for the evaluation.

Explanation

Verify whether the time after the current system time is within the next two seconds. Function UsagePower Query MDateTime.IsInNextNSeconds(DateTime.FixedLocalNow() + #duration(0, 0, 0, 2), 2) will output 'true'.