month_days: Number of days in a given month

Description Usage Arguments Value Examples

View source: R/dateutils.R

Description

Get the number of days in a month given the year and month

Usage

1
month_days(year, month)

Arguments

year

integer year value

month

integer month value

Value

The number of days in the month (integer)

Examples

1
2
3
month_days(2021,9) ## 30

month_days(2020,2) ## 29

dateutils documentation built on Nov. 10, 2021, 5:09 p.m.