leap_year
From lubridate v1.5.6
by Vitalie Spinu
Is a year a leap year?
If x is a recognized datetime object, leap_year will return whether x occurs during a leap year. If x is a number, leap_year returns whether it would be a leap year under the Gregorian calendar.
Usage
leap_year(date)
Arguments
 date
 a datetime object or a year
Value

TRUE if x is a leap year, FALSE otherwise
Examples
x < as.Date("20090802")
leap_year(x) # FALSE
leap_year(2009) # FALSE
leap_year(2008) # TRUE
leap_year(1900) # FALSE
leap_year(2000) # TRUE
Community examples
Looks like there are no examples yet.