Microsoft® JScript™ getTimezoneOffset Method |
| Language Reference | | Version 1 | |
Determines the difference in minutes between the time on the host computer and Greenwich Mean Time (GMT).
objDate.getTimezoneOffset( )
The getTimezoneOffset method returns an integer value representing the number of minutes between the time on the current machine and GMT. These values are appropriate to the computer the script is executed on. If it is called from a server script, it returns values appropriate to the server. If it is called from a client script, the return value is appropriate to the client.
For example, suppose a server in New York City is contacted by a client in Los Angeles on December 1. getTimezoneOffset returns -480 if executed on the client, or -300 if executed on the server.
© 1997 Microsoft Corporation. All rights reserved. |