We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: NB Japanese year

Development and Programming

Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.