DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js get current timezone offset
console.log(new Date().getTimezoneOffset()/-60) // offset in hours
PREVIOUS
NEXT
Tagged:
#js
#current
#timezone
#offset
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit