info_time_style: View a table with info on time styles

View source: R/info_tables.R

info_time_styleR Documentation

View a table with info on time styles

Description

fmt_time() lets us format time-based values in a convenient manner using preset styles. The table generated by info_time_style() provides a quick reference to all styles, with associated format names and example outputs using a fixed time (14:35).

Usage

info_time_style(locale = NULL)

Arguments

locale

Locale identifier

⁠scalar<character>⁠ // default: NULL (optional)

An optional locale identifier that can be used for displaying formatted time values according to the locale's rules. Examples include "en" for English (United States) and "fr" for French (France). We can call info_locales() for a useful reference for all of the locales that are supported.

Value

An object of class gt_tbl.

Examples

Get a table of info on the different time-formatting styles (which are used by supplying a number code to fmt_time()).

info_time_style()
This image of a table was generated from the first code example in the `info_time_style()` help file.

Function ID

11-2

Function Introduced

v0.2.0.5 (March 31, 2020)

See Also

Other information functions: info_currencies(), info_date_style(), info_flags(), info_google_fonts(), info_icons(), info_locales(), info_paletteer(), info_unit_conversions()


rstudio/gt documentation built on Dec. 2, 2024, 11:05 a.m.