R/FormatTime.R

Defines functions FormatTime

Documented in FormatTime

#' FormatTime
#'
#' Pretty printing of time in format YYYY/MM/DD HH:MM:SS.
#'
#' @param x \code{\link{POSIXct}} object. Required.
#'
#' @return string
#'
#' @examples
#' x <- Sys.time()
#' FormatTime(x)
#'
#' @export
FormatTime <- function(x)
{
  format(x, "%Y/%m/%d %H:%M:%S")
}
nextpagesoft/hivEstimatesAccuracy documentation built on Sept. 17, 2024, 5 a.m.