CAADate_DaysInMonth: CAADate_DaysInMonth

Description Usage Arguments Value Author(s) References Examples

View source: R/CAADate_DaysInMonth.R

Description

CAADate_DaysInMonth

Usage

1
CAADate_DaysInMonth(Month, bLeap)

Arguments

Month

Month: 1 to 12

bLeap

Logical, indicate whether the month is Leap or not.

Value

Returns the total number of days in the month (28 - 31) which this date represents. The static version of the function can be used if you do not want to construct a CAADate instance to do this test.

Author(s)

C++ code by PJ Naughter, imported to R by Jinlong Zhang

References

Meeus, J. H. (1991). Astronomical algorithms. Willmann-Bell, Incorporated.

Examples

1
2
3
4
CAADate_DaysInMonth(Month = 2, bLeap = FALSE)
CAADate_DaysInMonth(Month = 2, bLeap = TRUE)
CAADate_DaysInMonth(Month = 3, bLeap = FALSE)
CAADate_DaysInMonth(Month = 3, bLeap = TRUE)

helixcn/skycalc documentation built on March 31, 2021, 5:45 a.m.