Learn R Programming

fame (version 1.03)

format.ti: Time Index Conversion to Character

Description

Format a time index object for printing

Usage

## S3 method for class 'ti':
format(x, ..., tz = "GMT")

Arguments

x
a time index object
tz
A timezone specification to be used for the conversion if x has an intraday frequency. System-specific, but "" is the current time zone, and "GMT" is UTC.
...
other args passed on to format.POSIXlt.

Value

  • a character vector representing x

Details

x is converted to a POSIXlt object and then format.POSIXlt takes over.

See Also

format.POSIXlt, strftime

Examples

Run this code
format(today() + 0:9, "%x")

Run the code above in your browser using DataLab