dateDow: Formats a date/time as character and appends the day of week

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/dateDow.R

Description

Formats a date/time as character and appends the day of week in the current locale. Is a generic with currently on a default method.

Usage

1

Arguments

date

A vector that can be interpreted as a date.

Details

For character values of date, parses the date using dateParse(date, dross.remove=TRUE) and converts to day of week using weekdays(). For date of other classes, calls weekdays(date) directly. Weekdays uses the locale LC_TIME to determine the language used.

Value

A character vector.

Note

To get the weekday expressed in English, do Sys.setlocale("LC_TIME", "C"). (This should affect all language-dependent time formatting.)

Author(s)

Tony Plate tplate@acm.org

See Also

weekdays

Examples

1
2
3
dateDow(Sys.time())
dateDow(Sys.Date())
dateDow('2011-01-01')

TimeWarp documentation built on May 2, 2019, 11:11 a.m.