private int GetTimestamp() { TimeSpan t = (DateTime.UtcNow - new DateTime (1970, 1, 1)); return (int)t.TotalSeconds; }