as_POSIXct: Convert a Date, character, or POSIXlt to POSIXct

View source: R/datetime.R

as_POSIXctR Documentation

Convert a Date, character, or POSIXlt to POSIXct

Description

Convert a Date, character, or POSIXlt to POSIXct

Usage

as_POSIXct(
  x,
  time = "00:00:00",
  tz = "UTC",
  format = "%Y-%m-%d %H:%M:%S"
)

Arguments

x

vector of Date objects

time

character time of day, defaults to '00:00:00'

tz

character time zone, defaults to 'UTC'

format

for character inputs, the format defaults to 'YYYY-mm-dd HH:MM:SS'

Value

POSIXct equivalent of input


BigelowLab/dismotools documentation built on Jan. 4, 2023, 11:24 a.m.