<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.0" />

Microsoft.IdentityModel.Tokens.EpochTime

public static class EpochTime
Returns the absolute DateTime or the Seconds since Unix Epoch, where Epoch is UTC 1970-01-01T0:0:0Z.
public static readonly DateTime UnixEpoch

DateTime as UTV for UnixEpoch

public static DateTime DateTime(long secondsSinceUnixEpoch)

Creates a DateTime from epoch time.

public static long GetIntDate(DateTime datetime)

Gets the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the desired date/time.