TimeZoneDiff Property (.NET)

 

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: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.

 

Special notes for this property:

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("TimeZoneDiff");

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

TimeZoneDiff: <% Response.Write(extBrow.TimeZoneDiff); %> <p>

TimeZoneDiff (translated): <% Response.Write(extBrow.Translate("TimeZoneDiff")); %>

</html>

 

See Also:

Country Property (.NET)

BrowserDateTime Property (.NET)

BrowserDateTimeMs Property (.NET)