[转]ASP常用函数:TimeZone

2019-04-02 12:40:39于丽
功能:获取服务器所在时区


<% 
Function TimeZone() 
    Set oShell = CreateObject("WScript.Shell") 
    atb = "HKEY_LOCAL_MACHINESystemCurrentControlSet" & _ 
         "ControlTimeZoneInformationActiveTimeBias" 
    TimeZone = - oShell.RegRead(atb) / 60 
End Function 
%>