다음을 통해 공유


SqlMethods.DateDiffMillisecond 메서드

정의

지정된 두 날짜 사이의 밀리초 경계 수를 셉니다.

오버로드

DateDiffMillisecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

두 nullable 날짜 사이의 밀리초 경계 수를 셉니다.

DateDiffMillisecond(DateTime, DateTime)

nullable이 아닌 두 날짜 사이의 밀리초 경계 수를 셉니다.

DateDiffMillisecond(DateTimeOffset, DateTimeOffset)

nullable이 아닌 두 날짜 사이의 밀리초 경계 수를 셉니다.

DateDiffMillisecond(Nullable<DateTime>, Nullable<DateTime>)

두 nullable 날짜 사이의 밀리초 경계 수를 셉니다.

설명

SQL Server에 해당 DATEDIFF 함수를 사용 하 여 millisecond 시간 경계의 유형을 지정 하려면 교차 합니다. 이 SQL Server 함수에 대 한 자세한 내용은 참조 하세요 DATEDIFF합니다.

DateDiffMillisecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

두 nullable 날짜 사이의 밀리초 경계 수를 셉니다.

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

매개 변수

startDate
Nullable<DateTimeOffset>

기간의 시작 날짜입니다.

endDate
Nullable<DateTimeOffset>

기간의 종료 날짜입니다.

반환

두 매개 변수가 모두 null이 아니면 지정된 두 날짜 사이의 밀리초 경계 수를 반환합니다. 매개 변수 중 하나 또는 둘 모두가 null인 경우 null 값을 반환합니다.

설명

SQL Server에 해당 DATEDIFF 함수를 사용 하 여 millisecond 시간 경계의 유형을 지정 하려면 교차 합니다. 이 SQL Server 함수에 대 한 자세한 내용은 참조 하세요 DATEDIFF합니다.

적용 대상

DateDiffMillisecond(DateTime, DateTime)

nullable이 아닌 두 날짜 사이의 밀리초 경계 수를 셉니다.

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

매개 변수

startDate
DateTime

기간의 시작 날짜입니다.

endDate
DateTime

기간의 종료 날짜입니다.

반환

지정된 두 날짜 사이의 밀리초 경계 수입니다.

설명

SQL Server에 해당 DATEDIFF 함수를 사용 하 여 millisecond 시간 경계의 유형을 지정 하려면 교차 합니다. 이 SQL Server 함수에 대 한 자세한 내용은 참조 하세요 DATEDIFF합니다.

적용 대상

DateDiffMillisecond(DateTimeOffset, DateTimeOffset)

nullable이 아닌 두 날짜 사이의 밀리초 경계 수를 셉니다.

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

매개 변수

startDate
DateTimeOffset

기간의 시작 날짜입니다.

endDate
DateTimeOffset

기간의 종료 날짜입니다.

반환

지정된 두 날짜 사이의 밀리초 경계 수입니다.

설명

SQL Server에 해당 DATEDIFF 함수를 사용 하 여 millisecond 시간 경계의 유형을 지정 하려면 교차 합니다. 이 SQL Server 함수에 대 한 자세한 내용은 참조 하세요 DATEDIFF합니다.

적용 대상

DateDiffMillisecond(Nullable<DateTime>, Nullable<DateTime>)

두 nullable 날짜 사이의 밀리초 경계 수를 셉니다.

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

매개 변수

startDate
Nullable<DateTime>

기간의 시작 날짜입니다.

endDate
Nullable<DateTime>

기간의 종료 날짜입니다.

반환

두 매개 변수가 모두 null이 아니면 지정된 두 날짜 사이의 밀리초 경계 수를 반환합니다. 매개 변수 중 하나 또는 둘 모두가 null인 경우 null 값을 반환합니다.

설명

SQL Server에 해당 DATEDIFF 함수를 사용 하 여 millisecond 시간 경계의 유형을 지정 하려면 교차 합니다. 이 SQL Server 함수에 대 한 자세한 내용은 참조 하세요 DATEDIFF합니다.

적용 대상