timezone-offset-to Convert a timezone offset to a numerical value. npm install timezone-offset-to var tzto = require('timezone-offset-to') tzto.minutes('-05:00') // -300 tzto.hours('-05:45') // -5.75