Description Usage Arguments Value See Also Examples
Converts Date and POSIXct objects to the format given as input.
1 | format_utc(x, format = NULL, usetz = TRUE)
|
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. |
A character string representing the formatted date.
1 | format_utc(Sys.time(), format = "%Y-%m-%d", usetz = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.