Find YOur Zone Time

'If you want find specific local time zone. Function Local_TimeZone()

Dim strComputer,oWMIService,oComputer, allColComputer
strComputer = “.”
Set oWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” _
& strComputer & “\root\cimv2″)
Set allColComputer = oWMIService.ExecQuery _
(“Select * from Win32_TimeZone”)
For Each oComputer in allColComputer
msgbox oComputer.Description
Exit For
Next
Set oComputer = Nothing
Set allColComputer = Nothing
Set oWMIService = Nothing

End Function

Advertisement
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.