I would like to convert a time specified as year month day hours minutes and seconds which is local to new york (for the new york stock exchange) into UTC times so that stock prices can be compared with other world trading in a global time frame. Note that I am not located in new york, so this is a non-local time zone. Also note that I need to do this for many dates of stock prices in the past, not just for the current time.
I was playing around with the Javascript Date object (on the server using node.js) but it seems to be missing non-local time zone support, particularly as I need to account for hour changes with regards to daylight savings etc.
There are a lot of questions asked on this time conversion topic but I have not seen one for javascript that offers a solution that takes into account DST. Mostly this question comes down to automatically knowing the hour offset from new york time to UTC for any given date in the past.