R/make_tidy_datetime.R

Defines functions make_tidy_datetime

Documented in make_tidy_datetime

#' ruf

#' @name make_tidy_datetime
#' @param datetime class: POSIXct
#' @param timezone class: string
#' @import tidyverse
#' @examples
#' make_tidy_datetime(datetime=NA, timezone="UTC")
#' @export
make_tidy_datetime <- function(datetime=Sys.time(), timezone="UTC") {
	dt <- as.POSIXlt(datetime, timezone, "%Y_%m_%dT%H_%M_%S") %>% ruf::make_tidy_colnames()
	return(dt)
}
nelsonroque/ruf documentation built on March 11, 2021, 2:53 p.m.