powered by
Format a chron object.
# S3 method for chron format(x, format = att$format, origin. = att$origin, sep = " ", simplify, enclosed = c("(", ")"), ...)
A character vector.
A chron object.
As in chron or a single character string with percent codes as detailed in strptime.
chron
strptime
As in chron.
A character string that separates the dates and times in the output. Ignored if percent codes are used in format.
format
As in format.dates. Ignored if percent codes are used in format.
format.dates
A character vector of length 2 containing the strings that begin and end each output date/time. Ignored if percent codes are used in format.
Not currently used.
chron. format.dates. strptime.
format(chron(0, 0), c("yy/m/d", "h:m:s"), sep = "T", enclosed = c("", "")) format(chron(0, 0), "%Y-%m-%dT%H:%M:%S") # same
Run the code above in your browser using DataLab