DateTime.IsInNextNSeconds Function in Power Query
The DateTime.IsInNextNSeconds function in Power Query indicates whether the given datetime value occurs during the next number of seconds, as determined by the current date and time on the system.
Syntax
DateTime.IsInNextNSeconds(dateTime as any, seconds as number) as nullable logical
The function has the following parameters:
- dateTime: A datetime, or datetimezone value to be evaluated.
- seconds: The number of seconds.
Example:
Power Query M
let Source = DateTime.IsInNextNSeconds(DateTime.FixedLocalNow() + #duration(0, 0, 0, 50), 100) in Source
The output of the above code is TRUE.
Note: This function will return false when passed a value that occurs within the current second.