sh_year_is_leap: Determine if a Jalali year is a leap year

View source: R/leap_years.R

sh_year_is_leapR Documentation

Determine if a Jalali year is a leap year

Description

Check if an instant is in a leap year according to the Jalali calendar.

Usage

sh_year_is_leap(x)

Arguments

x

A jdate or jdatetime object or a numeric vector representing Jalali years.

Value

TRUE if in a leap year or FALSE otherwise.

Examples

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)

shide documentation built on Sept. 11, 2024, 6:37 p.m.