Skip to contents

Is it an RFC 2822 / HTTP datetime?

Usage

is_rfc2822_datetime(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for e.g. Fri, 06 Feb 1987 06:00:37 GMT.

Examples

is_rfc2822_datetime(c("Fri, 06 Feb 1987 06:00:37 GMT", NA))
#> [1] TRUE   NA