Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >

getTimezoneOffset() Method


This method returns the difference, in minutes, between Greenwich Mean Time and local time.

Syntax

dateVar.getTimezoneOffset()

Parameter
Description
Not applicable
 

Returns

The difference, in minutes, between Greenwich Mean Time (GMT) and local time.

Example

This example calculates the difference from Greenwich Mean Time in hours, of your location, based on the setting in the Windows Control Panel.

var aDate = new Date();
var hourDifference = Math.round(aDate.getTimezoneOffset() / 60);
TheApplication().RaiseErrorText("Your time zone is " +
      hourDifference + " hours from GMT.");

See Also

GetDate() Method, getDay() Method, getFullYear() Method, getHours() Method, getMinutes() Method, getMonth() Method, getSeconds() Method, getTime() Method, and getYear() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003