String timeStamp = GetTimestamp(DateTime.Now); code example
Example 1: c# datetime now timestamp
String timeStamp = GetTimestamp(DateTime.Now);
Example 2: c# datetime now timestamp
var Timestamp = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds();