phrase_datetime | R Documentation |
Formats date(time)s as strings according to the specified format
s and locale
, applying some typographic tweaks. A convenience wrapper around
stringi::stri_datetime_format()
.
phrase_datetime(
x,
format = "date_long",
locale = pal::pkg_config_val("locale")
)
x |
Date(s) or datetime(s) to format. A date, datetime, factor or character vector. |
format |
Format string(s) defining how to phrase |
locale |
|
A character vector of the same length as x
.
Other spoken language functions:
add_definite_article_de()
,
decline_noun_de()
,
definite_article_de()
,
definite_article_de_declined()
,
n_ify()
,
prettify_date()
,
prettify_datetime()
,
rank_nr()
,
write_out_n()
salim::phrase_datetime(lubridate::today())
salim::phrase_datetime(x = c(lubridate::today(),
lubridate::now()),
format = c("date_full",
"time_full"),
locale = "de-CH")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.