This is a bit of my JS code for which this is needed:
var secDiff = Math.abs(Math.round((utc_date-this.premiere_date)/1000)); this.years = this.calculateUnit
ES6 Style
Math.min(...[0, 6].map(v => new Date(95, v, 1).getTimezoneOffset() * -1));