ExpressionEngine addons

NB Japanese year

Description

Converts dates into Japanese era format. For example, 2009 is known as year Heisei 21.

Dates cover from the Meiji (1868-1911) to Heisei (1989-present day) periods (Meiji - Taisho - Showa - Heisei).

Usage

{exp:nb_japanese_year date="2009"}

Parameters

date="2009"

The year to convert to Japanese format. Full Japanese dates in kanji, including the month and day, can be used if the date is in the YYYY-MM-DD format and the style is set to "kanji_era".

style="kanji_era"

The date format. Options are (for example, "2009")

  • era: The era in alphabet and date in numebrs, eg. Heisei 21
  • kanji_era: The era in kanji and date in numbers, eg. 平成21年
  • shorthand_era: The first letter of the era in alphabet and date in numbers, eg. H21
  • year_number: The date in numbers only, eg. 21

Default is "era"

Installation

Copy the pi.nb_japanese_year.php file in your /plugins folder.

For ExpressionEngine 2:

Copy the nb_japanese_year folder to your /system/expressionengine/third_party folder

Changelog

0.1 (EE 1.6.x)

  • First release

2.0 (EE 2.x)

  • Converted for EE2
Creative Commons License