from timestamp to DateTime c# code example Example: c# datetime to timestamp DateTimeOffset.UtcNow.ToUnixTimeSeconds()