DateTime.IsInCurrentHourDateTime.IsInCurrentHour
構文Syntax
DateTime.IsInCurrentHour(dateTime as any) as nullable logical
バージョン情報About
システム上の現在の日時によって決定される現在の時間に、指定の datetime 値 dateTime
が含まれるかどうかを示します。Indicates whether the given datetime value dateTime
occurs during the current hour, as determined by the current date and time on the system.
dateTime
: 評価されるdatetime
またはdatetimezone
値。dateTime
: Adatetime
, ordatetimezone
value to be evaluated.
例 1Example 1
現在のシステム時刻が現在の時間に含まれるかどうかを調べます。Determine if the current system time is in the current hour.
DateTime.IsInCurrentHour(DateTime.FixedLocalNow())
true