Get time zone offset between two timezones for a given duration
I wanted to know if there is a way to get the time zone offset for a given date range between two timezones for a given duration. getTimezoneOffset(startDate,endDate,timezone1,timezone2){ ...missing magic to go here... } should return the time zone offset which is valid for the a given duration. However if the offset changes, it should return the date range for which it's valid. So I am looking at something like this: getTimezoneOFfset("march 9 12 am", "march 15 12 am", "UTC", "US/NEW_YORK") return value something like this timezoneoffset[0]["range"]=[march 9 12am to march 11 2 am]