Generate a calendar object of class "calendar". Examples of calendars
produced in this way include cal_chinese, cal_gregorian, cal_hebrew, cal_islamic,
and cal_iso.
Usage
new_calendar(
name,
short_name,
granularities,
validate_granularities,
format,
from_rd,
to_rd
)
cal_babylonian
cal_bahai
cal_balinese
cal_chinese
cal_japanese
cal_korean
cal_vietnamese
cal_coptic
cal_ethiopic
cal_egyptian
cal_armenian
cal_french
cal_afrench
cal_gregorian
cal_hebrew
cal_icelandic
cal_islamic
cal_iso
cal_julian
cal_oislamic
cal_saudi
cal_ohebrew
cal_samaritan
cal_mayan
cal_hindu_lunar
cal_hindu_solar
cal_old_hindu_solar
cal_old_hindu_lunar
cal_persian
cal_apersian
cal_roman
cal_tibetan
Value
A calendar object of class "calendar"
Arguments
name
Name of calendar
short_name
Short name of calendar
granularities
Character vector with names of granularities of calendar
(e.g., for the Gregorian calendar, the granularities are year, month, and day).
validate_granularities
Function to check granularities are valid (e.g.,
Gregorian months should be between 1 and 12).
format
Function to specify date format as a character string.