I am trying to get the current offset between NY(US/Eastern) and UTC. How can I get this value regardless of what timezone my server is in, and anything else. I just want the offset in milliseconds. I am sure there is a quick way to do this, but I haven’t found it.
Thank you in advance!
Note: this is not tested.
Using:
Calendar class
TimeZone class