I have a UTC timestamp that I would like to convert to a local timestamp for given latitude+longitude coordinates. I have seen multiple StackOverflow answers on how to convert a timestamp to the local time in a given timezone, but my issue is that the timezone for a given location depends on the time of year, since that affects daylight savings (so the location alone is insufficient to determine the time zone). For instance, a given UTC timestamp might correspond to 12:30am in a given location, but adding 86400 seconds to it corresponds to 11:30pm of the same day (in the event that daylight savings was changed that day).
Is there a library that can convert an absolute timestamp to a local date and time given latitude and longitude coordinates, or some way to figure out whether a location is experiencing DST at a given time?