[转]ASP常用函数:TimeZone
更新时间:2007年02月07日 00:00:00 作者:
功能:获取服务器所在时区
<%
Function TimeZone()
Set oShell = CreateObject("WScript.Shell")
atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" & _
"Control\TimeZoneInformation\ActiveTimeBias"
TimeZone = - oShell.RegRead(atb) / 60
End Function
%>
复制代码 代码如下:
<%
Function TimeZone()
Set oShell = CreateObject("WScript.Shell")
atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" & _
"Control\TimeZoneInformation\ActiveTimeBias"
TimeZone = - oShell.RegRead(atb) / 60
End Function
%>
相关文章
asp下如何在Access数据库中立即得到所插入记录的自动编号?
asp下如何在Access数据库中立即得到所插入记录的自动编号?...2007-04-04
最新评论