您现在的位置是:网站首页> 编程资料编程资料

asp怎么获取毫秒数实现代码_应用技巧_

2023-05-25 317人已围观

简介 asp怎么获取毫秒数实现代码_应用技巧_

复制代码 代码如下:

<%@ Language=VBScript %><%Response.Expires =0 %>





<br>测试毫秒 <br>





<%=Session("ms")%>


以下代码得到17位的当前时间
如:20091210105237238=2009年12月10日10:52:37:238

<%
'得到年月日20090101格式
id=year(now())&right(month(now())+100,2)&right(day(now())+100,2)
'得到时间010101格式
id=id&right(replace(time(),":","")+1000000,6)
'得到3位数的毫秒
id=id&right(Session("ms")+1000,3)
response.Write(id)
%>

-六神源码网