The Showa Hundred Year Problem

Japan's Own Y2K

There are many notable hundredth anniversaries in 2025. This year marks the origin of Hey Song, Taiwan's singular sarsaparilla; Kewpie Mayonnaise, known for its tang and naked dolls; Bontan Ame, a railway kiosk staple with gentle pomelo flavor; and even the naming of the Miura Daikon, which is much too big to be called a mere vegetable. But one particular event turned out to be happily unremarkable. 2025 was the hundreth year of the Showa imperial era, and, thankfully, at one minute past midnight on January 1, 2025, nothing happened.

Some things celebrating their hundredth anniversary in 2025.

The Showa era actually ended in 1989 with the emperor's death and was no longer used for dates, but the unusual length of the period and its overlap with the rise of personal computing meant that the hundredth anniversary was long feared as a peculiarly Japanese version of the Y2K problem. In practice the date change appears to have passed without issue, but before the number goes up one more let's take a look about what all the fuss was about.

First, a quick refresh on the Japanese imperial year system. Briefly, besides the Gregorian calendar year, every year belongs to an imperial era. So 2025 is also the 7th year of the Reiwa Era, typically simply referred to as Reiwa 7. While daily life in Japan usually uses Gregorian calendar years, imperial eras are not merely symbolic, and imperial year numbering is widely used in laws, taxes, finance, religion, and medical records, to give just a few examples.

Until the Meiji era becan in 1868, imperial eras changed mostly arbitrarily and frequently, with average length around five years, with the shortest era lasting less than three months. Following the introduction of constitutional government the imperial era was tied to the reigning emperor, and simply begins as he takes the throne and ends when he dies or (in the most recent case) retires. Additionally, years increment with Gregorian calendar years, so they don't all last 365 days. (This also means that, when an era changes, the Gregorian year will have two imperial year designations, for example 1989 is both Showa 64 and Heisei 1, depending whether the day of the year is before or after the imperial transition.) In the modern period Japan has had five eras - Meiji, Taisho, Showa, Heisei, and the current Reiwa.

The Showa period is a bit exceptional from a calendar perspective, particularly as it relates to computers. The Taisho period was brief, just around fifteen years, meaning the Showa emperor took the throne at a young age and had a long reign. In total the period lasted 62 years, making it the longest era by an almost twenty year margin. (If you noticed a contradiction, don't worry, we'll get to it.) This long period also had another feature that's of interest: since it lasted from 1926 to 1989, it happened to cover the entire early history of computing.

Given all the above, you may have already figured out what the Showa Hundred Year Problem is - it's essentially the same problem as Y2K, just shifted to the start of the Showa era rather than the 20th century. Suppose that somewhere a programmer had to display dates according to Japanese imperial years. Suppose that, since their entire career (and probably entire life) the only era in use had been Showa, they used the Showa year to store the date in the program. And since they weren't thinking about thirty years in the future, they only stored it as two digits.

It's unlikely this program would be around over thirty years later. But perhaps part of the program survived into the Heisei era, and someone just wrote a little patch that checked if the number was greater than 63, and subtracted that to show the Heisei year - a formatting trick to avoid rewriting old but functional code. But if that happened, then actually the internal representation of the year could still be just a two digit decimal number.

So what happens when the year wraps around from 99 to 00? Things that should happen in 2025 instead somehow belong to 1925, cats and dogs live together, and hell breaks loose, or something like that. Mu, Japan's monthly magazine of the strange, featured an article about the problem on the cover of its November 2024 special issue, issue describing the potential downfall of the financial system and the Internet, though the piece only rated a small mention on the cover. The article was light on technical details, and also curiously described Unix as a programming language.

While a number of articles cropped up explaining what the Showa Hundred Year Problem was leading up to 2025, they passed mostly unnoticed, mere curiosities compared to the major media attention showered on Y2K a quarter century ago. And, in fact, as 2025 comes to a close, I can't find any reports of actual issues stemming from the date change. There are a few records of preparations for any issues, but even those are from the past, and it seems that any system old enough to be a source of problems had already outlived its natural usefulness.

That said, while reviewing documents about the problem there is one little detail that struck me. Centuries in the Gregorian calendar start from 00 with their last two digits - 1800, 1900, and 2000. But that isn't the case for imperial eras, which don't have a zero year, and start from year one. That means that for anything started in the first year of an imperial era, like Cafe Lion, the hundredth anniversary is not year 100, but year 101. (This is also why the last Showa year was 64 even though the era only lasted 62 full years - it started on December 25, 1926, and ended just a week into 1989.)

What if a system somewhere stored the first year as zero, and just added one for output and formatting? If there is a system like that, it wouldn't run into overflow issues in Showa 100, but in Showa 101... or 2026.

But I'm sure it'll be fine. Ψ