65 points · by ChrisArchitect · 7y ago · 31 comments
https://news.ycombinator.com/item?id=17430085
From the MSDN article:
> The Japanese Calendar has Japanese Era Names that coincide with the reign of the Emperor. For most of the modern age of computing that has been the Heisei era, however the Emperor is expected to step down on April 30, 2019. Which will bring about the beginning of a new era. Fortunately, this is a rare event, however it means that most software has not been tested to ensure that it will behave with an additional era.
> The magnitude of this event on computing systems using the Japanese Calendar may be similar to the Y2K event with the Gregorian Calendar. For the Y2K event, there was world-wide recognition of the upcoming change, resulting in governments and software vendors beginning to work on solutions for that problem several years before 1 Jan 2000. Even with that preparation many organizations encountered problems due to the millennial transition.
I swear there was an HN thread about a language-specific implementation (Java? Ruby?) of calendar, which included having to deal with the Japanese epoch change.
For things like Y2K, you could have done your deployment and testing long before it happened - for this change, everyone has just this one month to wait for any vendors involved to finalize, test and distribute their updates so that they can start deploying them on their own systems. No programming language or calendar library version older than March 31, 2019 could include proper support for Japanese dates of May.
Yeah, I was wondering about this line in the article:
> Officials compounded the problem by keeping the new era’s name secret until April 1, just one month before the transition.
Is there any reason, specific to Japanese tradition/convention/bureaucracy to keep the name of the era secret until one month before the actual change? When is the era name actually decided on, and how soon after the abdication of the current emperor?
Then again, this transition is also highly unusual because the emperor abdicated, allowing time to prepare. It's the first time in the modern era that this happened, as all previous (recent) emperors have died on the throne.
From the other perspective, the only unique part about Japan is that they use a name for the calendar.
Yes.
I don't think that's correct. The same way we handle timezone updates via external data source in most languages/libraries, we don't need to update the language itself to handle the new era. This could be done by preparing the code to handle changes and then publishing just the common database update which includes a new "(date) (era)" entry.
How many different ways were dates marked "Heisei" displayed? I suspect it would actually be easy to finalize changes using a placeholder string, and just update to the actual era name when it was announced.
https://blogs.oracle.com/java-platform-group/a-new-japanese-...