R/time_now_utc.R

Defines functions time_now_utc

Documented in time_now_utc

#' get the current POSIXct timestamp in UTC
#'
#'
#'
#' @importFrom lubridate with_tz
#'
#' @export
#'
#' @examples
#'
#' time_now_utc()
#'
time_now_utc <- function() {
  lubridate::with_tz(Sys.time(), tzone = "UTC")
}
Tychobra/tychobratools documentation built on April 12, 2022, 12:29 a.m.