What is a Unix timestamp?
The number of seconds since 1 January 1970 00:00:00 UTC. JavaScript and some APIs use milliseconds; the tool treats 13-digit values as milliseconds automatically.
How do I get it in .NET?
With DateTimeOffset.UtcNow.ToUnixTimeSeconds(); DateTimeOffset.FromUnixTimeSeconds(ts) does the reverse.