Re:Abe explains choice of Reiwa for next era name
by glandium on Monday April 01, 2019 @12:46AM
(#19540573)
Heisei 31 is this year. Heisei 32 and above are the ones that don't exist.
Re:Abe explains choice of Reiwa for next era name
by james_s_tayler on Monday April 01, 2019 @12:48AM
(#19540586)
Thankfully I don't live in Japan and have to deal with that system on a daily basis.
Re:Abe explains choice of Reiwa for next era name
by Larrikin on Monday April 01, 2019 @06:13AM
(#19541882)
It's been thirty years since anyone has to touch that code.
Re:Abe explains choice of Reiwa for next era name
by glandium on Monday April 01, 2019 @06:43AM
(#19542012)
Some systems are even still on the previous era (shōwa). Some may even hit a Y2K-like problem in 2025 (shōwa 100).
Re:Abe explains choice of Reiwa for next era name
by Smithalicious on Monday April 01, 2019 @03:07PM
(#19546956)
I'm now imagining some kind of action movie where the emperor lives too long and a band of programmers have to assassinate them lest their code breaks.
Re:Abe explains choice of Reiwa for next era name
by enqk on Monday April 01, 2019 @01:49AM
(#19540848)
Isn’t Reiwa 1 also this year?
Re:Abe explains choice of Reiwa for next era name
by fenomas on Monday April 01, 2019 @02:15AM
(#19540951)
It's both - dates through April 30 are Heisei 31, and dates from May 1 are Reiwa 1, is the official take.
Re:Abe explains choice of Reiwa for next era name
by earthboundkid on Monday April 01, 2019 @09:50AM
(#19543185)
Well, I don't foresee that causing any bugs.
Re:Abe explains choice of Reiwa for next era name
by thaumasiotes on Monday April 01, 2019 @11:40AM
(#19544479)
Bugs of that type should have been worked out long ago; it is not the norm for the era change to coincide with the new year.
Re:Abe explains choice of Reiwa for next era name
by Nullabillity on Monday April 01, 2019 @01:01PM
(#19545461)
It is not the norm to reset your date system every 30 or so years.
Re:Abe explains choice of Reiwa for next era name
by thaumasiotes on Monday April 01, 2019 @09:38PM
(#19550271)
...yes it is?
For example any dates in the future like 2020 will show up wrong. Where it ought to be reiwa 2 it will be Heisei 31 which doesn't even exist.
Heaven forbid you were doing something crazy like matching on strings for the date etc you could get into a world of hurt.
Mostly though you always work with real, actual dates and use the standard library support for the Japanese era date to calculate outputs for display only. Mostly it just means there are a few forms/invoices out there with a non-existent date on them but oh well.