Learn R Programming

datetimeutils (version 0.6-4)

rfc822t: Format Date and Time as Described in RFC 822

Description

Format a timestamp as described in RFC 822.

Usage

rfc822t(x, include.dow = TRUE)

Value

a character vector

Arguments

x

a vector that can be coerced to POSIXlt

include.dow

logical; include the day of the week?

Author

Enrico Schumann

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.

References

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

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

See Also

Examples

Run this code
rfc822t(Sys.time())

Run the code above in your browser using DataLab