TimeZoneDiff Property

 

Type: Double

 

Returns the time zone difference in hours between the time zone the browser is running in and the time zone your web server is running in. Positive numbers indicate that the browser is ahead by that many hours, negative numbers indicate behind.

 

For example, if your web server is running on Eastern Standard Time and the browser is running on a machine set for Pacific time, the value of TimeZoneDiff will be -3 to indicate 3 hours behind.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.

 

Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "TimeZoneDiff"

bhObj.GetExtPropertiesEx

%>

<html>Time zone difference is:

<% response.write bhObj.TimeZoneDiff %>

</html>

 

Special notes for this property:

 

See Also:

Country Property

BrowserDateTime Property

BrowserDateTimeMs Property

GetExtPropertiesEx Method

SetExtProperties Method