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
Source by attacomsian.com #
PREVIOUS
NEXT
Tagged:
#js
#current
#timezone
#offset
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit