SqlMethods.DateDiffNanosecond メソッド

定義

指定した 2 つの日付間のナノ秒境界の数をカウントします。

オーバーロード

名前 説明
DateDiffNanosecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

2 つの null 許容日付間のナノ秒境界の数をカウントします。

DateDiffNanosecond(Nullable<DateTime>, Nullable<DateTime>)

2 つの null 許容日付間のナノ秒境界の数をカウントします。

DateDiffNanosecond(DateTime, DateTime)

null 非許容の 2 つの日付間のナノ秒境界の数をカウントします。

DateDiffNanosecond(DateTimeOffset, DateTimeOffset)

null 非許容の 2 つの日付間のナノ秒境界の数をカウントします。

DateDiffNanosecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

2 つの null 許容日付間のナノ秒境界の数をカウントします。

public:
 static Nullable<int> DateDiffNanosecond(Nullable<DateTimeOffset> startDate, Nullable<DateTimeOffset> endDate);
public static int? DateDiffNanosecond(DateTimeOffset? startDate, DateTimeOffset? endDate);
static member DateDiffNanosecond : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DateDiffNanosecond (startDate As Nullable(Of DateTimeOffset), endDate As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

パラメーター

startDate
Nullable<DateTimeOffset>

期間の開始日。

endDate
Nullable<DateTimeOffset>

期間の終了日。

返品

両方のパラメーターが nullされていない場合は、指定した 2 つの日付間のナノ秒境界の数を返します。 一方または両方のパラメーターが nullされている場合は、 null 値を返します。

注釈

DATEDIFF を使用して交差する時間境界の種類を指定するSQL Server nanosecond関数に対応します。 このSQL Server関数の詳細については、DATEDIFF を参照してください。

適用対象

DateDiffNanosecond(Nullable<DateTime>, Nullable<DateTime>)

2 つの null 許容日付間のナノ秒境界の数をカウントします。

public:
 static Nullable<int> DateDiffNanosecond(Nullable<DateTime> startDate, Nullable<DateTime> endDate);
public static int? DateDiffNanosecond(DateTime? startDate, DateTime? endDate);
static member DateDiffNanosecond : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DateDiffNanosecond (startDate As Nullable(Of DateTime), endDate As Nullable(Of DateTime)) As Nullable(Of Integer)

パラメーター

startDate
Nullable<DateTime>

期間の開始日。

endDate
Nullable<DateTime>

期間の終了日。

返品

両方のパラメーターが nullされていない場合は、指定した 2 つの日付間のナノ秒境界の数を返します。 一方または両方のパラメーターが nullされている場合は、 null 値を返します。

注釈

DATEDIFF を使用して交差する時間境界の種類を指定するSQL Server nanosecond関数に対応します。 このSQL Server関数の詳細については、DATEDIFF を参照してください。

適用対象

DateDiffNanosecond(DateTime, DateTime)

null 非許容の 2 つの日付間のナノ秒境界の数をカウントします。

public:
 static int DateDiffNanosecond(DateTime startDate, DateTime endDate);
public static int DateDiffNanosecond(DateTime startDate, DateTime endDate);
static member DateDiffNanosecond : DateTime * DateTime -> int
Public Shared Function DateDiffNanosecond (startDate As DateTime, endDate As DateTime) As Integer

パラメーター

startDate
DateTime

期間の開始日。

endDate
DateTime

期間の終了日。

返品

指定した 2 つの日付間のナノ秒境界の数。

注釈

DATEDIFF を使用して交差する時間境界の種類を指定するSQL Server nanosecond関数に対応します。 このSQL Server関数の詳細については、DATEDIFF を参照してください。

適用対象

DateDiffNanosecond(DateTimeOffset, DateTimeOffset)

null 非許容の 2 つの日付間のナノ秒境界の数をカウントします。

public:
 static int DateDiffNanosecond(DateTimeOffset startDate, DateTimeOffset endDate);
public static int DateDiffNanosecond(DateTimeOffset startDate, DateTimeOffset endDate);
static member DateDiffNanosecond : DateTimeOffset * DateTimeOffset -> int
Public Shared Function DateDiffNanosecond (startDate As DateTimeOffset, endDate As DateTimeOffset) As Integer

パラメーター

startDate
DateTimeOffset

期間の開始日。

endDate
DateTimeOffset

期間の終了日。

返品

指定した 2 つの日付間のナノ秒境界の数。

注釈

DATEDIFF を使用して交差する時間境界の種類を指定するSQL Server nanosecond関数に対応します。 このSQL Server関数の詳細については、DATEDIFF を参照してください。

適用対象