View source: R/wareki_kyureki.R
wareki2kyureki | R Documentation |
A set of functions for mutual conversion between Kyureki that the old Japanese calendar and Wareki that the current Japanese calendar. For years before 1872, Kyureki and Wareki are identical. After 1873, the Gregorian calendar was adopted in Japan, and there is a difference from there.
wareki2kyureki(
date,
era = c("south", "north", "east", "heishi", "kyoto", "non"),
one = c("kanji", "number"),
leap.month = c("kanji", "hiragana"),
sep = c("kanji", "/", "-")
)
kyureki2wareki(
date,
era = c("south", "north", "east", "heishi", "kyoto", "non"),
one = c("kanji", "number"),
leap.month = c("kanji", "hiragana"),
sep = c("kanji", "/", "-")
)
date |
Date to be converted. It should always include the year, month, and day. |
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. |
String type date.
The data for the Kyureki calendar and era names refer to the following data.
manakai/data-locale https://github.com/manakai/data-locale
wareki2kyureki("\u4ee4\u548c3\u5e741\u67081\u65e5")
kyureki2wareki("\u4ee4\u548c2\u5e7411\u670818\u65e5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.