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

8 lines
313 B
C#

namespace InnovEnergy.Time.Unix;
public readonly partial struct UnixTime
{
public override Boolean Equals(Object? obj) => obj is UnixTime other && Ticks == other.Ticks;
public override Int32 GetHashCode() => (Int32) (Ticks & 0x7F_FF_FF_FF);
public override String ToString() => Ticks.ToString();
}