DateTime.IsInCurrentSecond

语法

DateTime.IsInCurrentSecond(dateTime as any) as nullable logical

关于

指示给定的日期/时间值 dateTime 是否为当前这一秒的时间(由系统上的当前日期和时间确定)。

  • dateTime:要计算的 datetimedatetimezone 值。

示例 1

确定当前系统时间为当前这一秒的时间。

使用情况

DateTime.IsInCurrentSecond(DateTime.FixedLocalNow())

输出

true

results matching ""

    No results matching ""