format.chron

0th

Percentile

Format a chron object

Format a chron object.

Keywords
misc
Usage
"format"(x, format = att$format, origin. = att$origin, sep = " ", simplify, enclosed = c("(", ")"), ...)
Arguments
x
A chron object.
format
As in chron or a single character string with percent codes as detailed in strptime.
origin.
As in chron.
sep
A character string that separates the dates and times in the output. Ignored if percent codes are used in format.
simplify
As in format.dates. Ignored if percent codes are used in format.
enclosed
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.
Value

A character vector.

See Also

chron. format.dates. strptime.

Aliases
  • format.chron
Examples
format(chron(0, 0), c("yy/m/d", "h:m:s"), sep = "T", enclose = c("", ""))
format(chron(0, 0), "%Y-%m-%dT%H:%M:%S") # same
Documentation reproduced from package chron, version 2.3-47, License: GPL-2

Community examples

Looks like there are no examples yet.