NumDaysInMonth: Number of Days in a Month

Description Usage Arguments Functions Examples

Description

Given a date, it returns the number of days in the month.

Usage

1
2
3
4
5
6
7
NumDaysInMonth(date)

MonthName(month.idx, short = FALSE)

NumHoursInMonth(Date, market = "PNW")

DiffMonths(dates, date1)

Arguments

date

Date in either 'character' or 'date' format.

month.idx

An integer (1:12) indicating month index.

short

A binary. If TRUE, month names are shown in abbreviated forms.

market

"PNW", "CAISO" or "MISO"

Functions

Examples

1
2
3
4
5
dates <- seq(as.Date("2000-1-1"), length.out = 6, by="mon")
NumDaysInMonth(dates)
MonthName(MonthFromDate(dates))
NumHoursInMonth(dates)
DiffMonths(dates, as.Date("2000-3-1"))

einaooka/tea.datetime documentation built on May 16, 2019, 1:25 a.m.