czech_date class attribute to the input object. Date of class
czech_date is printed as a date in long format with correct Czech
grammatical case (see Details and Grammatical cases section below).
as_czech_date(date, case = "genitive")
date or date-like object to parse.
character, either "nominative", "locative" or "genitive" (default) or any unambiguous abbreviation of these.
The grammatical case should be specified as and argument to
method, but for convenience, you can predefine it in
directly. It is then stored as an attribute, later grabbed by the
Note that as opposed to other date formating functions in
as_date_czech trims leading zeros.
Same as input, but with class
czech_date and attribute
Three grammatical cases are supported:
nominative – native form, i.e. "leden" in Czech
locative – "in ...", i.e. "v lednu" in Czech
genitive – "the 'nth' of ...", i.e. "5. ledna" in Czech
Czech months listed by case are available in
Sys.time() %>% as_czech_date() # in "nominative" grammatical case (note the abbreviation) Sys.time() %>% as_czech_date("nom")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.