Date.IsInCurrentDay

Date.IsInCurrentDay(dateTime as any) as nullable logical

指示在当天中给定的日期时间值 dateTime 是否出现,它由系统上的当前日期和时间确定。

  • dateTime: 要进行求值的 datedatetimedatetimezone 值。

示例:

确定当前系统时间是否处于当天。

使用情况:

Date.IsInCurrentDay(DateTime.FixedLocalNow())

输出:

true

results matching ""

    No results matching ""