Skip to contents

Tests whether each year is a leap year.

Usage

dtt_leap_year(x)

Arguments

x

A date/time vector.

Value

A logical vector indicating whether each year is a leap year.

See also

Other leap year: dtt_feb29_to_28()

Examples

dtt_leap_year(as.Date("1999-03-04", "2000-02-01"))
#> [1] NA