DateTime.IsInNextMinute

DateTime.IsInNextMinute(dateTime as any) as nullable logical

指示给定的日期时间值 dateTime 是否按系统当前日期和时间所确定的那样处于接下来的一分钟内。

  • dateTime: 要计算的 datetimedatetimezone 值。

示例:

确定当前系统时间后的分钟是否处于接下来的一分钟内。

使用情况:

DateTime.IsInNextMinute(DateTime.FixedLocalNow() + #duration(0,0,1,0))

输出:

true

results matching ""

    No results matching ""