|
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods >
getTimezoneOffset() Method
This method returns the difference, in minutes, between Greenwich mean time and local time. Syntax
dateVar.getTimezoneOffset()
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 getYear() Method
|