clock_labels | R Documentation |
When parsing and formatting dates, you often need to know how weekdays of the week and months are represented as text. These functions allow you to either create your own labels, or look them up from a standard set of language specific labels. The standard list is derived from ICU (https://unicode-org.github.io/icu/) via the stringi package.
clock_labels_lookup()
looks up a set of labels from a
given language code.
clock_labels_languages()
lists the language codes that are accepted.
clock_labels()
lets you create your own set of labels. Use this if the
currently supported languages don't meet your needs.
clock_labels(
month,
month_abbrev = month,
weekday,
weekday_abbrev = weekday,
am_pm
)
clock_labels_lookup(language)
clock_labels_languages()
month , month_abbrev |
Full and abbreviated month names. Starts with January. |
weekday , weekday_abbrev |
Full and abbreviated weekday names. Starts with Sunday. |
am_pm |
Names used for AM and PM. |
language |
A BCP 47 locale, generally constructed from a two or three
digit language code. See |
A "clock_labels"
object.
clock_labels_lookup("en")
clock_labels_lookup("ko")
clock_labels_lookup("fr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.