GMT Offset
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
 
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

GMT:
Timezone offset
from UTC/GMT:
min
Timezone offset
from UTC/GMT:
hr
Timezone offset
from UTC/GMT:
corrected


GMT Offset

View Source...

This JavaScript use of the getTimeZoneOffset returns the difference in minutes from the local time to GMT. There are three examples of how to correctly use this. The last example is needed since the number of minutes is negative if the zone you are testing is ahead of UTC and is positive if the zone is behind UTC. It appears to be the opposite of what you would expect. The number of minutes is CORRECTED for DST if applicable. Click the test button.


Bookmark and Share
Registered® Trademark™ and CopyrightŠ 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved