Get the local time from a UTC time
问题 Let's say I have a data set with the date, latitude, and longitude. dt = data.table(date = c("2017-10-24 05:01:05", "2017-10-24 05:01:57", "2017-10-24 05:02:54"), lat = c(-6.2704925537109375, -6.2704925537109375, -6.2704925537109375), long = c(106.5803680419922, 106.5803680419922, 106.5803680419922)) The time is UTC. Is it possible to transfer that UTC to the local time using the lat and long? 回答1: I found a good answer on converting longitude and latitude to timezones here, so here is how we