private UInt32 UnixStamp()
{
TimeSpan ts = DateTime.Now - TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
return Convert.ToUInt32(ts.TotalSeconds);
}
写成函数了.
参考
XinBeta (
http://www.xinbeta.com/html/dev/dotnet/2007/0222/56.html)
转载于:https://www.cnblogs.com/xinbin/archive/2007/02/24/655033.html