EssentialsDate.CompareTo method
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
CompareTo(EssentialsDate)
Compares the value of this instance to a specified EssentialsDate value and returns an integer that indicates whether this instance is lower than, the same as, or greater than the specified EssentialsDate value.
public virtual int CompareTo(EssentialsDate value)
Parameters
value
EssentialsDate
The value to compare to the current instance.
Returns
A signed number indicating the relative values of this instance and the value
parameter.
CompareTo(DateTime)
Compares the value of this instance to a specified DateTime value and returns an integer that indicates whether this instance is lower than, the same as, or greater than the specified DateTime value.
public int CompareTo(DateTime value)
Parameters
value
DateTime
The value to compare to the current instance.
Returns
A signed number indicating the relative values of this instance and the value
parameter.
CompareTo(DateTimeOffset)
Compares the value of this instance to a specified DateTimeOffset value and returns an integer that indicates whether this instance is lower than, the same as, or greater than the specified DateTimeOffset value.
public int CompareTo(DateTimeOffset value)
Parameters
value
DateTimeOffset
The value to compare to the current instance.
Returns
A signed number indicating the relative values of this instance and the value
parameter.
CompareTo(EssentialsTime)
Compares the value of this instance to a specified EssentialsTime value and returns an integer that indicates whether this instance is lower than, the same as, or greater than the specified EssentialsTime value.
public int CompareTo(EssentialsTime value)
Parameters
value
EssentialsTime
The value to compare to the current instance.
Returns
A signed number indicating the relative values of this instance and the value
parameter.
CompareTo(object)
Compares the value of this instance to a specified object that contains a EssentialsDate value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EssentialsDate value.
public virtual int CompareTo(object value)
Parameters
value
Object
The value to compare to the current instance.
Returns
A signed number indicating the relative values of this instance and the value
parameter.