utc_to_local: Add local time column to data frame with UTC time

View source: R/utc_to_local.R

utc_to_localR Documentation

Add local time column to data frame with UTC time

Description

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

Usage

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

stacyderuiter/FBtagtools documentation built on June 1, 2025, 6:26 p.m.