phrase_date: Phrase (ballot) date

phrase_dateR Documentation

Phrase (ballot) date

Description

Phrases a date according to the specified format and lang.

Usage

phrase_date(
  x = pal::pkg_config_val("ballot_date"),
  format = "date_long",
  lang = pal::pkg_config_val("lang")
)

Arguments

x

Date(s) or datetime(s) to format. A date, datetime, factor or character vector.

format

Format string(s) defining how to phrase x. Possible values include "date_short", "date_medium", "date_long", "date_full", "time_short", "time_medium", "time_long" and "time_full". See stringi::stri_datetime_format() for details.

lang

Language. One of "de" or "en".

Value

A character scalar.

See Also

Other text phrasing functions: phrase(), phrase_election_candidate(), phrase_proposal_name_de()

Examples

fokus::phrase_date()

zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.