C# Class Yea.DataTypes.DateSpan

Represents a date span
Exibir arquivo Open project: OxPatient/Rule-Engine Class Usage Examples

Public Methods

Method Description
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

Method Details

DateSpan() public method

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
return System

Equals() public method

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

GetHashCode() public method

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

Intersection() public method

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

Overlap() public method

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

ToString() public method

Converts the DateSpan to a string
public ToString ( ) : string
return string

operator() public static method

Addition operator
public static operator ( ) : DateSpan
return DateSpan

operator() public static method

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