using System; using System.Collections.Generic; using System.Text; /// /// 快速获取 当前绝对时间的秒数 /// class SysTime { public static long GetTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0); return Convert.ToInt64(ts.TotalSeconds); } }