powered by
Check if an instant is in a leap year according to the Jalali calendar.
sh_year_is_leap(x)
TRUE if in a leap year or FALSE otherwise.
TRUE
FALSE
A jdate or jdatetime object or a numeric vector representing Jalali years.
jdate
jdatetime
sh_year_is_leap(jdatetime("1399-01-01 00:00:00")) x <- seq(jdate("1400-01-01"), by = "years", length.out = 10) names(x) <- sh_year(x) sh_year_is_leap(x)
Run the code above in your browser using DataLab