C# Class Yea.DataTypes.DateSpan

Represents a date span
Afficher le fichier Open project: OxPatient/Rule-Engine Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat System

Equals() public méthode

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

GetHashCode() public méthode

Gets the hash code for the date span
public GetHashCode ( ) : int
Résultat int

Intersection() public méthode

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

Overlap() public méthode

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

ToString() public méthode

Converts the DateSpan to a string
public ToString ( ) : string
Résultat string

operator() public static méthode

Addition operator
public static operator ( ) : DateSpan
Résultat DateSpan

operator() public static méthode

Determines if two DateSpans are not equal
public static operator ( ) : bool
Résultat bool