R/dateTime.R

Defines functions dateTime

#' Convert Nominal Date and Time to Date-Time Object.
#'
#' Character(s) to POSIXlt date.
#' @param date Character. "yyyy-mm-dd".
#' @param time Character. "hh:mm" or "hh:mm:ss".
#' @param tz Character. Time zone.
#' @noRd

dateTime <- function(date = "2021-01-01", time = "09:00", tz = "GMT") {
  as.POSIXct(paste(date, time), tz = tz)
}

Try the packageRank package in your browser

Any scripts or data that you put into this service are public.

packageRank documentation built on Oct. 16, 2024, 9:06 a.m.