<%
unixtime=DateDiff("s", "01/01/1970 00:00:00", Now())
response.write unixtime '显示Unix时间戳
response.write "<hr>"
response.write DateAdd("s",unixtime, "01/01/1970 00:00:00") '将Unix时间戳转为正常日期
response.write "<hr>"
response.write DateDiff("s", "01/01/1970 00:00:00", time) '这个显示Unix时间戳不一样
%>
以下是显示效果
1471287712
2016-8-15 19:01:52
-2209093088
2016-8-15 19:01:52
-2209093088