get current unix in seconds c# code example Example: get unix time in seconds C# DateTimeOffset.UtcNow.ToUnixTimeSeconds()