EssentialsDateTime.CompareTo method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

CompareTo(DateTime)

Virtual

Compares the value of this instance to a specified EssentialsDateTime.DateTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EssentialsDateTime.DateTime value.

public virtual int CompareTo(DateTime value)

Parameters

value DateTime

The value to compare to the current instance.

Returns

int

A signed number indicating the relative values of this instance and the value parameter.

CompareTo(EssentialsDateTime)

Virtual

Compares the value of this instance to a specified EssentialsDateTime value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EssentialsDateTime value.

public virtual int CompareTo(EssentialsDateTime value)

Parameters

The value to compare to the current instance.

Returns

int

A signed number indicating the relative values of this instance and the value parameter.

CompareTo(object)

Virtual

Compares the value of this instance to a specified object that contains a specified EssentialsDateTime.DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified EssentialsDateTime.DateTime value.

public virtual int CompareTo(object value)

Parameters

value Object

The value to compare to the current instance.

Returns

int

A signed number indicating the relative values of this instance and the value parameter.