Changes

Jump to: navigation, search

JavaScript Date Object

2 bytes added, 18:40, 8 May 2007
Finding the Time Zone Offset and Getting Local Time
Current (UTC) Time is Wed, 20 Jun 2007 16:00:00 GMT
=== Finding the Time Zone Offset and Getting Local Time ===
It is often useful to be able to find out the time zone offset (meaning the number of hours ahead or behind UTC) of a web site visitor. JavaScript provides the ''getTimezoneOffset()'' method which, as the name suggests, returns the number of minutes difference between the client (i.e where the browser is being run) and UTC:

Navigation menu