DateTime.IsInPreviousMinute Function in Power Query
The DateTime.IsInPreviousMinute function in Power Query indicates whether the given datetime value occurs during the previous minute, as determined by the current date and time on the system.
Syntax
DateTime.IsInPreviousMinute(dateTime as any) as nullable logical
- dateTime: A datetime, or datetimezone value to be evaluated.
Example: Determine if the minute before the current system time is in the previous minute.
Power Query M
let Source = DateTime.IsInPreviousMinute(DateTime.FixedLocalNow() - #duration(0, 0, 1, 0)) 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 minute.