Syntax
DateTime.IsInPreviousSecond(dateTime as any) as nullable logical
About
指示给定的日期/时间值 dateTime 是否在上一秒期间发生,由系统上的当前日期和时间确定。 请注意,当传递在当前秒内发生的值时,此函数将返回 false。
-
dateTime:要计算的 Adatetime或datetimezone值。
示例 1
确定当前系统时间之前的第二个时间是否位于上一秒。
用法
DateTime.IsInPreviousSecond(DateTime.FixedLocalNow() - #duration(0, 0, 0, 1))
输出
true