Last chance! 50% off unlimited learning
Sale ends in
Returns a list of all localizable date-time formatting data, including month and weekday names, localized AM/PM strings, etc.
stri_datetime_symbols(locale = NULL, context = "standalone",
width = "wide")
NULL
or ""
for default locale,
or a single string with locale identifier
single string; one of: "format"
, "standalone"
single string; one of: "abbreviated"
, "wide"
, "narrow"
Returns a list with the following named components:
Month
- month names,
Weekday
- weekday names,
Quarter
- quarter names,
AmPm
- AM/PM names,
Era
- era names.
context
stands for a selector for date formatting context
and width
- for date formatting width.
Calendar - ICU User Guide, http://userguide.icu-project.org/datetime/calendar
DateFormatSymbols class -- ICU API Documentation, http://icu-project.org/apiref/icu4c/classicu_1_1DateFormatSymbols.html
Formatting Dates and Times -- ICU User Guide, http://userguide.icu-project.org/formatparse/datetime
Other datetime: stri_datetime_add
,
stri_datetime_create
,
stri_datetime_fields
,
stri_datetime_format
,
stri_datetime_fstr
,
stri_datetime_now
,
stri_timezone_get
,
stri_timezone_info
,
stri_timezone_list
# NOT RUN {
stri_datetime_symbols() # uses the Gregorian calendar in most locales
stri_datetime_symbols("@calendar=hebrew")
stri_datetime_symbols("he_IL@calendar=hebrew")
stri_datetime_symbols("@calendar=islamic")
stri_datetime_symbols("@calendar=persian")
stri_datetime_symbols("@calendar=indian")
stri_datetime_symbols("@calendar=coptic")
stri_datetime_symbols("@calendar=japanese")
stri_datetime_symbols("ja_JP_TRADITIONAL") # uses the Japanese calendar by default
stri_datetime_symbols("th_TH_TRADITIONAL") # uses the Buddhist calendar
stri_datetime_symbols("pl_PL", context="format")
stri_datetime_symbols("pl_PL", context="standalone")
stri_datetime_symbols(width="wide")
stri_datetime_symbols(width="abbreviated")
stri_datetime_symbols(width="narrow")
# }
Run the code above in your browser using DataLab