Specifically, what I want to know is: when it’s 10:00 (10AM) EST, what time is it in the user’s current time zone? At time of writing the answer to a user in the UK (GMT) would be 15:00 (3PM).
For my specific case I don’t even need the minutes or the day, just the hour (
15 in this example).
Most questions of this nature are concerned with converting the present time (now) or from the user’s timezone. At one point I even resorted to ruby for the transformation, but making it work from anything but UTC is a bit harder. I feel like there must be way to do it with
date, but macOS uses BSD’s
date and most answers use GNU’s.