Innovenergy_trunk/csharp/lib/Time/Unix/UnixTime.Compare.cs

7 lines
295 B
C#

namespace InnovEnergy.Time.Unix;
public readonly partial struct UnixTime : IComparable<UnixTime>, IEquatable<UnixTime>
{
Int32 IComparable<UnixTime>.CompareTo(UnixTime other) => Ticks.CompareTo(other.Ticks);
Boolean IEquatable<UnixTime>.Equals(UnixTime other) => Ticks == other.Ticks;
}