[Experimental] Whether it is a holiday defined by Japanese law (enacted in 1948)

is_jholiday(date)

Arguments

date

a vector of POSIXt, numeric or character objects

Value

TRUE if x is a public holidays in Japan, FALSE otherwise.

Details

Holiday information refers to data published as of December 21, 2020. Future holidays are subject to change.

Examples

is_jholiday("2021-01-01")
#> [1] TRUE
is_jholiday("2018-12-23")
#> [1] TRUE
is_jholiday("2019-12-23")
#> [1] FALSE