Given an input data frame that already has UTC datetimes, add another datetime column giving the local time

utc_to_local(x, utc_var, tz = "America/Los_Angeles")

Arguments

x

input data must contain a column that gives the UTC times to be converted to local

utc_var

name of variable (in x) that gives the UTC times

tz

desired time zone name -- for example the default, 'America/Los_Angeles'

Value

data.frame x with one added column called local_time

Examples

# Examples will go here