Skip to contents

Is it a Hijri (Islamic-calendar) date?

Usage

is_hijri_date(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for D <Islamic month> YYYY.

Examples

is_hijri_date(c("11 Shawwal 1430", "5 Muharram 1300", NA))
#> [1] TRUE TRUE   NA