days_in_month

0th

Percentile

Get the number of days in the month of a date-time

Date-time must be a POSIXct, POSIXlt, Date, chron, yearmon, yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, and fts objects.

Usage
days_in_month(x)
Arguments
x

a date-time object

Value

An integer of the number of days in the month component of the date-time object.

Aliases
  • days_in_month
Documentation reproduced from package lubridate, version 1.7.4, License: GPL (>= 2)

Community examples

chien_andrew@yahoo.com at Jan 31, 2019 lubridate v1.7.4

## Format string as Date ``` date = as.Date("2011-02-23", "%Y-%m-%d") ``` Use the days_in_month function <br> ```{r} days_in_month(date) ```