From: akr@... Date: 2019-04-08T05:34:41+00:00 Subject: [ruby-core:92197] [Ruby trunk Feature#15742] Add Date#jisx0301 support new Japanese era Issue #15742 has been updated by akr (Akira Tanaka). - Unicode CLDR 35.1 alpha uses "R". https://www.unicode.org/repos/cldr/tags/release-35-1-alpha/common/main/ja.xml - OpenJDK also uses "R". https://bugs.openjdk.java.net/browse/JDK-8205432 http://hg.openjdk.java.net/jdk/jdk/rev/3d8934bf505a ---------------------------------------- Feature #15742: Add Date#jisx0301 support new Japanese era https://bugs.ruby-lang.org/issues/15742#change-77527 * Author: kaishuu0123 (Koki Oyatsu) * Status: Feedback * Priority: Normal * Assignee: * Target version: ---------------------------------------- ## Reproduce process ``` irb(main):002:0> require 'date' => true irb(main):003:0> Date.new(2019, 5, 1).jisx0301 => "H31.05.01" ``` * ruby version: trunk ## Result of reproduce process ``` irb(main):003:0> Date.new(2019, 5, 1).jisx0301 => "H31.05.01" ``` ## Expected result and the reason why you expect ``` irb(main):002:0> require 'date' => true irb(main):003:0> Date.new(2019, 5, 1).jisx0301 => "R01.05.01" ``` ### reason * new era (Reiwa?) starts from 2019/05/01 * refs: https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L7049 * I can't be sure that initial letter is "R". -- https://bugs.ruby-lang.org/ Unsubscribe: