get_tz: Determines timezone from Latitude and Longitude

View source: R/get_tz.R

get_tzR Documentation

Determines timezone from Latitude and Longitude

Description

This function determines the IANA/Olson time zone identifier from latitude and longitude. This is a helper function which is used to assist in converting downloaded data from UTC to local time.

Timezone information is extracted from the included tz_world dataset. The original tz_world data was created by Eric Muller and can be found at (http://efele.net/maps/tz/world/)

Usage

get_tz(Lat, Lon, site_crs)

Arguments

Lat

The site Latitude

Lon

The site Longitude

site_crs

The coordinate reference system of the points, preferably designated as an EPSG code. For example, the most common geographic system is WGS84 and its EPSG code is 4326.

Value

Returns the IANA/Olson time zone identifier for a given Latitude and Longitude


psavoy/StreamLightUtils documentation built on April 5, 2022, 11:05 p.m.