Learn R Programming

dttr2 (version 0.5.2)

dtt_date_add_time: Add Time to Date

Description

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

Usage

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

Value

A POSIXct vector.

Arguments

x

A Date vector.

time

A hms vector of the time.

tz

A string of the time zone.

See Also

Other add: dtt_add_units()

Examples

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

Run the code above in your browser using DataLab