[轉(zhuǎn)]ASP常用函數(shù):TimeZone
更新時間:2007年02月07日 00:00:00 作者:
功能:獲取服務(wù)器所在時區(qū)
<%
Function TimeZone()
Set oShell = CreateObject("WScript.Shell")
atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" & _
"Control\TimeZoneInformation\ActiveTimeBias"
TimeZone = - oShell.RegRead(atb) / 60
End Function
%>
復(fù)制代碼 代碼如下:
<%
Function TimeZone()
Set oShell = CreateObject("WScript.Shell")
atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" & _
"Control\TimeZoneInformation\ActiveTimeBias"
TimeZone = - oShell.RegRead(atb) / 60
End Function
%>
相關(guān)文章
用Command對象和RecordSet對象向數(shù)據(jù)庫增加記錄哪一個更好
用Command對象和RecordSet對象向數(shù)據(jù)庫增加記錄哪一個更好...2006-06-06
Eval 函數(shù) | Execute 語句 | ExecuteGlobal 語句使用說明
在運行時添加過程和類是非常有用的,但是也可能導(dǎo)致在運行時覆蓋已有的全局 變量 和函數(shù)。因為這可能導(dǎo)致非常嚴(yán)重的程序問題,因此,當(dāng)使用 ExecuteGlobal 語句時一定得非常謹慎。2007-02-02
javascript asp教程第三課 new String() 構(gòu)造器
javascript asp教程第三課 new String() 構(gòu)造器...2007-03-03
javascript asp教程第八課--request對象
javascript asp教程第八課--request對象...2007-03-03
講解ASP方面的知識比較全的asp學(xué)習(xí)教程
講解ASP方面的知識比較全的asp學(xué)習(xí)教程...2007-03-03
javascript asp教程創(chuàng)建數(shù)據(jù)庫連接
javascript asp教程創(chuàng)建數(shù)據(jù)庫連接...2007-03-03

