pretty_print_date: Pretty print date in several languages

View source: R/utils.R

pretty_print_dateR Documentation

Pretty print date in several languages

Description

Format dates according to the conventions of several languages.

Usage

pretty_print_date(x, locale = c("en_GB", "en_US", "hu_HU"))

Arguments

x

a date-time object

locale

Language to use.

Details

Currently only UK and US English, and Hungarian are supported.

Examples

locales <- c("en_GB", "en_US", "hu_HU")
sapply(locales, function(x) pretty_print_date(Sys.Date(), x))

svraka/asmisc documentation built on June 12, 2025, 12:04 p.m.