Property | Type | Description | |
---|---|---|---|
$mapEras |
Method | Description | |
---|---|---|
toJapaneseNumeral ( integer $number, integer $type = self::NUMERAL_KANJI ) : string | Converts a number in Arabic/Western format into Japanese numeral. | |
toJapaneseYear ( $year, integer $yearType = self::YEAR_KANJI, integer $numeralType = null ) : string | Converts a year in Western format into Japanese format. | |
toWesternYear ( $year ) : string | array | Converts a year in Japanese format into Western format. |
public static toWesternYear ( $year ) : string | array | ||
$year | : kanji or hiragana era name followed by digits, or era name in romaji, space and digit. I.e. : 明治33, めいじ33, Meiji 33 | |
return | string | array | : The year(s) in Western format. |