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

8 lines
313 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
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();
}