Javascript Date getGmtOffset()

Description

Javascript Date getGmtOffset()


function getGmtOffset() {
 var d = new Date();
 var gmtOffset = d.getTimezoneOffset() * 60; // minutes to seconds
 return gmtOffset;
}



PreviousNext

Related