Project

General

Profile

Actions

Feature #15742

closed

Add Date#jisx0301 support new Japanese era

Added by kaishuu0123 (Koki Oyatsu) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:92071]

Description

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


Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #15195: Deal with new Japanese eraClosedduerst (Martin Dürst)Actions
Blocks Ruby master - Bug #15740: Backport Unicode Version 12.1.0 and other Japanese new era issues to Ruby 2.6Closednaruse (Yui NARUSE)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0