year.date_xx(x)

month.date_xx(x, label = FALSE, abbr = TRUE, locale = Sys.getlocale("LC_TIME"))

isoweek.date_xx(x)

Arguments

x

a date_xx or any R object that can be coerced to POSIXlt

label

logical. TRUE will display the month as a character string such as "January." FALSE will display the month as a number.

abbr

logical. FALSE will display the month as a character string label, such as "January". TRUE will display an abbreviated version of the label, such as "Jan". abbr is disregarded if label = FALSE.

locale

for month, locale to use for month names. Default to current locale.

See also

Examples

if (FALSE) { library(lubridate) month(x) month(x, label = TRUE) } if (FALSE) { library(lubridate) isoweek(x) }