Obtain days in each month

days_month(year)

Arguments

year

Numeric value with a year.

Value

Named vector with days in each month of year.

Examples

days_month(2021)
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 
#>  31  28  31  30  31  30  31  31  30  31  30  31 
days_month(-11996.92)
#> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 
#>  31  29  31  30  31  30  31  31  30  31  30  31