View source: R/str_english_date_format.R
str_english_date_format | R Documentation |
Function to format a date in a verbose, English language style character string.
str_english_date_format(
x,
weekday = TRUE,
seconds = TRUE,
time_zone = TRUE,
date_only = FALSE,
drop_zeros = TRUE
)
x |
Date vector. |
weekday |
Should the weekday be returned? |
seconds |
Should seconds be printed? |
time_zone |
Should the time zone string be printed? |
date_only |
Should only the date pieces be returned? |
drop_zeros |
Should leading zeros be dropped from the return? |
Character vector.
Stuart K. Grange.
# All information with seconds and time zone
str_english_date_format(lubridate::now())
# No seconds
str_english_date_format(lubridate::now(), seconds = FALSE)
# No seconds or time zone
str_english_date_format(lubridate::now(), seconds = FALSE, time_zone = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.