get_POSIXct: Function creates a POSIXct time object(s) for representing...

View source: R/get_POSIXct.R

get_POSIXctR Documentation

Function creates a POSIXct time object(s) for representing calendar dates and times

Description

The function is just a simple wrapper around the base::as.POSIXct() as a reminder of the arguments required to implement the base function.

Usage

get_POSIXct(time_vals = NULL, time_format = NULL, time_origin = NULL)

Arguments

time_vals

A vector/object as character in date-time format or a numeric in seconds.

time_format

A character string that defines the format of time_vals if different from the ISO 8601 format. The format string should follow the format string for base::strptime().

time_origin

A character string that sets the origin/start date for calculating the internal elapsed seconds representation of the time. The default in R is January 1, 1970.

Value

A POSIXct time object

Author(s)

Rick Dean


deandevl/RtsaPkg documentation built on Oct. 5, 2023, 5:23 p.m.