using System;
public class Program
{
public static void Main()
int otherTime = 2342354336;
DateTime now = DateTime.UtcNow;
TimeSpan difference = now.Subtract(otherTime); // could also write `now - otherTime`
Console.WriteLine(difference.TotalSeconds);
}