DateTime.IsInPreviousSecond
DateTime.IsInPreviousSecond(dateTime as any) as nullable logical
指示给定的日期时间值 dateTime 是否按系统当前日期和时间所确定的那样处于前一秒内。
dateTime: 要计算的datetime或datetimezone值。
示例:
确定当前系统时间前的秒是否处于前一秒内。
使用情况:
DateTime.IsInPreviousSecond(DateTime.FixedLocalNow() - #duration(0,0,0,1))
输出:
true