JavaScript GetTimezoneOffset
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
Top Free Apps

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

JavaScript GetTimezoneOffset

View Source...

This command 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.

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