CAADate_IsLeap: CAADate_IsLeap

Description Usage Arguments Value Author(s) References Examples

View source: R/CAADate_IsLeap.R

Description

CAADate_IsLeap

Usage

1
CAADate_IsLeap(Year, bGregorianCalendar)

Arguments

Year

Year The year. (Years are counted astronomically i.e. 1 BC = Year 0) Year The year. (Years are counted astronomically i.e. 1 BC = Year 0)

bGregorianCalendar

bGregorianCalendar true to imply a date in the Gregorian Calendar, false means use the Julian Calendar.

Value

true if the specified year is leap otherwise false.

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_IsLeap(Year = 1998, bGregorianCalendar = TRUE)
CAADate_IsLeap(Year = 2000, bGregorianCalendar = TRUE)
CAADate_IsLeap(Year = 1996, bGregorianCalendar = TRUE)
CAADate_IsLeap(Year = 2013, bGregorianCalendar = TRUE)

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