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

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

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')


Search within the TimeWarp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.