rvn_num_days_month: Number of Days in Month

View source: R/rvn_utilities.R

rvn_num_days_monthR Documentation

Number of Days in Month

Description

Calculates the number of days in the month

Usage

rvn_num_days_month(date)

Arguments

date

object in date format

Details

This method includes leap years if they exist in the specified month.

Value

int

number of days in the month

See Also

rvn_num_days for calculating the number of days between two dates

See original code on post in Stack Overflow the number of days in a month

Examples


rvn_num_days_month(as.Date("2016-02-05"))
# 29

rvn_num_days_month(as.Date("2017-01-17"))
# 31


rchlumsk/RavenR documentation built on Nov. 4, 2022, 2:01 a.m.