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

6 lines
170 B
C#

namespace InnovEnergy.Lib.Time.Unix;
public readonly partial struct UnixTime
{
public DateTime ToUtcDateTime() => DateTime.UnixEpoch + TimeSpan.FromSeconds(Ticks);
}