R/getUnixTime.R

Defines functions getUnixTime

Documented in getUnixTime

#' Current time in seconds.
#'
#' Simple wrapper for \code{as.integer(Sys.time())}.
#'
#' @return [\code{integer(1)}].
#' @export
getUnixTime = function() {
  as.integer(Sys.time())
}

Try the BBmisc package in your browser

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.