JS:

var unix_time = Math.round(new Date().getTime() / 1000);

 

C#:

var unixTime=(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
posted on 2011-08-29 13:32  穿梭老李  阅读(921)  评论(0编辑  收藏  举报