Plugin: NB Japanese year
Posted: 14 December 2009 07:10 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  175
Joined  09-30-2008

This fun plugin 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”

Links and documentation
Developer’s site
Expression-engine.jp Forum (Japanese)
Devot:ee link

File Attachments
pi.nb_japanese_year.php.zip  (File Size: 3KB - Downloads: 151)
Profile