IT Process Automation

CA PAM::.Javascript::. getTimezoneOffset() Method 

Mar 24, 2017 10:26 AM

getTimezoneOffset()

 

Overview - definition

 

Returns the time difference between UTC time and local time, in minutes

 

Usage

The getTimezoneOffset() method returns the time difference between UTC time and local time, in minutes.

 

For example:

 

If your time zone is GMT+2, -120 will be returned. (Brazil - Brasilia - Daylight saving time dates)

If your time zone is GMT+3, -180 will be returned. (Brazil - Brasilia)

Results

A Number of minutes between UTC from (GMT-14h) -840 and 720 (GMT+12h)

Time Zone Map 

Examples

 

var vDate = new Date();
var vtimezone = vDate.getTimezoneOffset();

 

 

 

know_more.png

Summary CA Process Automation 

Summary CA Service Management Community 

Service Desk Manager 15 days Implementation 

CABI:: Summary - BOXI for CA SDM 

Summary CA SDM Scoreboard 

 

 

Was useful, please leave your feedback!

Statistics
0 Favorited
4 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.