Share via


Calendar.CompareDateTime(DateTime) 메서드

정의

이 달력을 DateTime 개체와 비교하고 한 달력의 날짜와 시간이 다른 달력의 날짜와 시간이 이전인지, 같은지 또는 이후인지를 나타냅니다.

public:
 virtual int CompareDateTime(DateTime other) = CompareDateTime;
int CompareDateTime(DateTime const& other);
public int CompareDateTime(System.DateTimeOffset other);
function compareDateTime(other)
Public Function CompareDateTime (other As DateTimeOffset) As Integer

매개 변수

other
DateTime DateTimeOffset

현재 달력과 비교할 DateTime 개체입니다.

반환

Int32

int

다음 값 중 하나입니다.

반환 값설명
0보다 작음이 달력의 날짜와 시간은 *other*보다 이전입니다.
0날짜와 시간은 같습니다.
0보다 큼이 달력의 날짜와 시간은 *other*보다 나중입니다.

적용 대상

추가 정보