当前位置:首页 > ASP教程 > ASP基础

[转]ASP常用函数:TimeZone

功能:获取服务器所在时区

复制代码 代码如下:

<% 
function timezone() 
    set oshell = createobject("wscript.shell") 
    atb = "hkey_local_machinesystemcurrentcontrolset" & _ 
         "controltimezoneinformationactivetimebias" 
    timezone = - oshell.regread(atb) / 60 
end function 
%> 


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!