Description Usage Arguments Attention Examples
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.
1 2 3 | lunarToSolar(x, more = FALSE)
solarToLunar(x, more = FALSE)
|
x |
Date format of string or |
more |
Show more information of the relative Date. |
In lunarToSolar
function, Feburary 29th and 30th in lunar calendar are missing
in lubridate::ymd()
!
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.