C# 클래스 Yea.DataTypes.DateSpan

Represents a date span
파일 보기 프로젝트 열기: OxPatient/Rule-Engine 1 사용 예제들

공개 메소드들

메소드 설명
DateSpan ( System.DateTime Start, System.DateTime End ) : System

Constructor

Equals ( object obj ) : bool

Determines if two objects are equal

GetHashCode ( ) : int

Gets the hash code for the date span

Intersection ( DateSpan Span ) : DateSpan

Returns the intersecting time span between the two values

Overlap ( DateSpan Span ) : bool

Determines if two DateSpans overlap

ToString ( ) : string

Converts the DateSpan to a string

operator ( ) : DateSpan

Addition operator

operator ( ) : bool

Determines if two DateSpans are not equal

메소드 상세

DateSpan() 공개 메소드

Constructor
public DateSpan ( System.DateTime Start, System.DateTime End ) : System
Start System.DateTime Start of the date span
End System.DateTime End of the date span
리턴 System

Equals() 공개 메소드

Determines if two objects are equal
public Equals ( object obj ) : bool
obj object Object to check
리턴 bool

GetHashCode() 공개 메소드

Gets the hash code for the date span
public GetHashCode ( ) : int
리턴 int

Intersection() 공개 메소드

Returns the intersecting time span between the two values
public Intersection ( DateSpan Span ) : DateSpan
Span DateSpan Span to use
리턴 DateSpan

Overlap() 공개 메소드

Determines if two DateSpans overlap
public Overlap ( DateSpan Span ) : bool
Span DateSpan The span to compare to
리턴 bool

ToString() 공개 메소드

Converts the DateSpan to a string
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Addition operator
public static operator ( ) : DateSpan
리턴 DateSpan

operator() 공개 정적인 메소드

Determines if two DateSpans are not equal
public static operator ( ) : bool
리턴 bool