DateTime.IsInNextHourDateTime.IsInNextHour
構文Syntax
DateTime.IsInNextHour(dateTime as any) as nullable logical
バージョン情報About
システム上の現在の日時によって決定される次の時間に、指定された datetime 値 dateTime
が含まれるかどうかを示します。Indicates whether the given datetime value dateTime
occurs during the next hour, as determined by the current date and time on the system. この関数は、現在の時間に含まれる値が渡された場合は false を返すことに注意してください。Note that this function will return false when passed a value that occurs within the current hour.
dateTime
: 評価されるdatetime
またはdatetimezone
値。dateTime
: Adatetime
, ordatetimezone
value to be evaluated.
例 1Example 1
システムの現在の時刻の次の時間が、次の 1 時間に含まれるかどうかを調べます。Determine if the hour after the current system time is in the next hour.
DateTime.IsInNextHour(DateTime.FixedLocalNow() + #duration(0, 1, 0, 0))
true