lunarCal: Convert Solar date to and from lunar date

Description Usage Arguments Value

Description

This function allows the conversion between solar date and lunar date.

Usage

1
lunarCal(x, toString = FALSE, withZodiac = FALSE, ignoreLeap = TRUE)

Arguments

x

date to convert, can be solar date or lunar date. Date object is converted to lunar date. Vector with the format of lunar date is converted to solar date.

toString

format the output lunar date to Chinese string (Traditional Chinese)

withZodiac

Append the Chinese Zodiac sign to the string output of lunar date

ignoreLeap

ignore leap month when the converted lunar date can have a leap month

Value

Date object (solar date) or lunar date, depends on the input x.


chainsawriot/hongkong documentation built on May 13, 2019, 3:11 p.m.