`
yanzilee9292
  • 浏览: 528316 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

VBScript获取给定Timezone的Date

 
阅读更多

Function Get_TimeZone_Specified_Date_by_GMTHour(intHour)
	n = Now
	set oShell = CreateObject("WScript.Shell") 
	atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" &"Control\TimeZoneInformation\ActiveTimeBias"
	offsetMin = oShell.RegRead(atb) 
	n = dateadd("n", offsetMin, n) 
	Get_TimeZone_Specified_Date_by_GMTHour = dateadd("h", intHour, n) 
End Function
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics