format_utc: Format Date and POSIXct

Description Usage Arguments Value See Also Examples

View source: R/nmisc.R

Description

Converts Date and POSIXct objects to the format given as input.

Usage

1
format_utc(x, format = NULL, usetz = TRUE)

Arguments

x

A Date or POSIXct object to be converted.

format

A character string. The default format is "%Y-%m-%d" for Date and "%Y-%m-%d %H:%M:%S" for POSIXct.

usetz

Logical. If TRUE, the time zone abbreviation is appended to the output. Applicable only if an POSIXct object.

Value

A character string representing the formatted date.

See Also

format.Date, format.POSIXct

Examples

1

numeract/shinyXT documentation built on May 30, 2019, 5 a.m.