Search
 
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
Name
9+4 =