Share via


DateTimeApproximationComparer Class

Definition

The DateTimeApproximationComparer is responsible for comparing two DateTime objects at a level of precision determined by the first object. The comparison either compares at the date level or the date and time (down to Seconds precision).

public ref class DateTimeApproximationComparer : System::Collections::Generic::IComparer<DateTime>
public class DateTimeApproximationComparer : System.Collections.Generic.IComparer<DateTime>
type DateTimeApproximationComparer = class
    interface IComparer<DateTime>
Public Class DateTimeApproximationComparer
Implements IComparer(Of DateTime)
Inheritance
DateTimeApproximationComparer
Implements

Constructors

DateTimeApproximationComparer()

Methods

Compare(DateTime, DateTime)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Applies to