conversion: Convert between lunar calendar and solar calendar

Description Usage Arguments Attention Examples

Description

lunarToSolar is used to convert the date of lunar calendar to solar calendar; solarToLunar is used to convert the date of solar calendar to lunar calendar.

Usage

1
2
3
lunarToSolar(x, more = FALSE)

solarToLunar(x, more = FALSE)

Arguments

x

Date format of string or Date class data created by lubridate.

more

Show more information of the relative Date.

Attention

In lunarToSolar function, Feburary 29th and 30th in lunar calendar are missing in lubridate::ymd()!

Examples

1
2
3
4
5
6
7
t <- c("19 2 28", "19 7 3")
lunarToSolar(today())
lunarToSolar("19 2 29")
lunarToSolar(t)

solarToLunar(today())
solarToLunar(t)

hoasxyz/ourbir documentation built on May 5, 2019, 7:57 p.m.