DateTime.IsInCurrentMinute

Syntax

DateTime.IsInCurrentMinute(dateTime as any) as nullable logical

About

指示给定的日期/时间值 dateTime 是否在当前分钟内发生,由系统上的当前日期和时间确定。

  • dateTime:要计算的 A datetimedatetimezone 值。

示例 1

确定当前系统时间是否在当前分钟。

用法

DateTime.IsInCurrentMinute(DateTime.FixedLocalNow())

输出

true