prettify_datetime: Prettify datetime

prettify_datetimeR Documentation

Prettify datetime

Description

[Deprecated]

Use stringi::stri_datetime_format() instead:

stringi::stri_datetime_format(format = c("datetime_short", "datetime_medium", "datetime_long", "datetime_full"),
                              locale = "en")

Usage

prettify_datetime(datetime, locale = c("en", "de", "en-US", "de-CH"))

Arguments

datetime

Datetime to be prettified. A datetime or something coercible to.

locale

Locale the datetime should be prettified for. Currently only "en"/"en-US" and "de"/"de-CH" are implemented.

Details

Note that this might only work on (Ubuntu) Linux in the current form since locales are one bitchy hell of a PITA...

Value

A character scalar.

See Also

Other spoken language functions: add_definite_article_de(), decline_noun_de(), definite_article_de(), definite_article_de_declined(), n_ify(), prettify_date(), rank_nr(), write_out_n()

Examples

salim:::prettify_datetime("2021-12-21T00:00:01Z")

salim-b/salim documentation built on April 12, 2024, 7:57 p.m.