R/datetime.R

Defines functions now

Documented in now

#' Get current datetime
#' @return Current datetime as an ISO 8601 formatted character string
#' @export
now <- function() {
  format(lubridate::now(), "%Y-%m-%dT%H:%M:%S%z")
}

Try the framework package in your browser

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

framework documentation built on Feb. 18, 2026, 1:07 a.m.