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

7 lines
299 B
C#

namespace InnovEnergy.Lib.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;
}