From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24840 invoked by alias); 7 Feb 2019 06:17:47 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 19472 invoked by uid 48); 7 Feb 2019 06:17:43 -0000 From: "tamuki at linet dot gr.jp" To: libc-locales@sourceware.org Subject: [Bug localedata/24162] ja_JP LC_TIME: era offset for Taisho GanNen and BC direction Date: Thu, 07 Feb 2019 06:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: 2.29 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: tamuki at linet dot gr.jp X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00045.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24162 --- Comment #5 from TAMUKI Shoichi --- Hello Morimitsu-san, (In reply to junji morimitsu from comment #0) > 2: The offset of Taisho Gan Nen (1912) is '2', but it should be '1'. > Gan Nen means the 1st year, Taisho started on 1912-07-30. Yes, you are right. Probably, this typo was introduced when creating ja_JP localedata, but it has been overlooked so far. I think it sould be corrected. > 3: The direction of BC is '+', but it should be '-'. The start_date > (-1/12/31) is the last day of BC. The direction is backward. > However I cannot show how to use this flag. Only decoration? There is no need to change this: $ date -d "2016 years ago" +"%EY" =E8=A5=BF=E6=9A=A603=E5=B9=B4 $ date -d "2017 years ago" +"%EY" =E8=A5=BF=E6=9A=A602=E5=B9=B4 $ date -d "2018 years ago" +"%EY" =E8=A5=BF=E6=9A=A601=E5=B9=B4 $ date -d "2019 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D01=E5=B9=B4 $ date -d "2020 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D02=E5=B9=B4 $ date -d "2021 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D03=E5=B9=B4 If you change '+' to '-', it will be as follows: $ date -d "2016 years ago" +"%EY" =E8=A5=BF=E6=9A=A603=E5=B9=B4 $ date -d "2017 years ago" +"%EY" =E8=A5=BF=E6=9A=A602=E5=B9=B4 $ date -d "2018 years ago" +"%EY" =E8=A5=BF=E6=9A=A601=E5=B9=B4 $ date -d "2019 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D01=E5=B9=B4 $ date -d "2020 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D00=E5=B9=B4 $ date -d "2021 years ago" +"%EY" =E7=B4=80=E5=85=83=E5=89=8D-1=E5=B9=B4 Regards, TAMUKI Shoichi --=20 You are receiving this mail because: You are on the CC list for the bug.