dtt_date_add_time {dttr2}R Documentation

Date Add Time

Description

Adds times to Dates vector and sets timezone in a single function.

Usage

dtt_date_add_time(x, time, tz = dtt_default_tz())

Arguments

x

A Date vector.

time

A hms vector.

tz

A string of the timezone.

Value

A POSIXct vector.

Examples

dtt_date_add_time(as.Date("2001-03-05"), hms::as_hms("06:07:08"), tz = "Etc/GMT+9")

[Package dttr2 version 0.3.0 Index]