| seireki2kyureki {jcalendaR} | R Documentation | 
kyureki
Description
This is a set of functions for mutual conversion between Kyureki that the lunar calendar and the calendar, the former calendar system of Japan. Kyureki the lunar calendar here is a calendar system that was never actually used, assuming that the Tenpo calendar was extended after the 6th year of Meiji.
Usage
seireki2kyureki(
  date,
  calendar = c("gregorian", "julian"),
  era = c("south", "north", "east", "heishi", "kyoto", "non"),
  one = c("kanji", "number"),
  leap.month = c("kanji", "hiragana"),
  sep = c("kanji", "/", "-")
)
kyureki2seireki(
  date,
  calendar = c("gregorian", "julian"),
  era = c("south", "north", "east", "heishi", "kyoto", "non"),
  sep = "/"
)
Arguments
| date | Date to be converted. It should always include the year, month, and day. | 
| calendar | Select whether the calendar is Gregorian or Julian. | 
| era | Whether the Gengo of the Japanese calendar is the Southern or Northern dynasty system, the system used in the Kanto region, the Heike, and Kyoto respectively, or no era names. | 
| one | Whether to write the year in kanji as the first year or leave it as a number. | 
| leap.month | Whether to write leap months in Kanji or Hiragana. | 
| sep | The way the date is separated when the last date is written. | 
Value
String type date.
References
The data for the Kyureki calendar and era names refer to the following data.
manakai/data-locale https://github.com/manakai/data-locale
Examples
seireki2kyureki("2021/1/1")
kyureki2seireki("\u4ee4\u548c3\u5e741\u67081\u65e5")