rfc822t: Format Date and Time as Described in RFC 822

View source: R/functions.R

rfc822tR Documentation

Format Date and Time as Described in RFC 822

Description

Format a timestamp as described in RFC 822.

Usage

rfc822t(x, include.dow = TRUE)

Arguments

x

a vector that can be coerced to POSIXlt

include.dow

logical; include the day of the week?

Details

Formats a timestamp as ‘%Y %H:%M:%S %z’, possibly prepending an abbreviated day-of-week. The function ignores the current locale: day-of-week and month names are in English. The format is required for timestamps in RSS feeds.

Value

a character vector

Author(s)

Enrico Schumann

References

https://www.ietf.org/rfc/rfc0822.txt

https://www.rssboard.org/rss-specification

See Also

strftime, date

Examples

rfc822t(Sys.time())

enricoschumann/datetimeutils documentation built on April 2, 2024, 11:10 a.m.