alternative calendar for the following locales: zh_TW, cmn_TW, hak_TW,
nan_TW, lzh_TW.
+* The entry for the new Japanese era has been added for ja_JP locale.
+
Deprecated and removed features, and other changes affecting compatibility:
* The functions clock_gettime, clock_getres, clock_settime,
%
% The following dates and their names are recorded below in descending
% date order (note that <U5E74> or <NEN> follows each date).
-% <HEISEI> -> <SHOWA> -> <TAISHO> -> <MEIJI> -> <AD> -> <BC>
+% <REIWA> -> <HEISEI> -> <SHOWA> -> <TAISHO> -> <MEIJI> -> <AD> -> <BC>
%
% Each string is an era description segment with the format:
% "direction:offset:start_date:end_date:era_name:era_format"
% - The last entry <U7D00><U5143><U524D> in era_name means BC.
% - The second-to-last entry <U897F><U66A6> in era_name means AD.
%
-era "+:2:1990//01//01:+*:<U5E73><U6210>:%EC%Ey<U5E74>";/
+era "+:2:2020//01//01:+*:<U4EE4><U548C>:%EC%Ey<U5E74>";/
+ "+:1:2019//05//01:2019//12//31:<U4EE4><U548C>:%EC<U5143><U5E74>";/
+ "+:2:1990//01//01:2019//04//30:<U5E73><U6210>:%EC%Ey<U5E74>";/
"+:1:1989//01//08:1989//12//31:<U5E73><U6210>:%EC<U5143><U5E74>";/
"+:2:1927//01//01:1989//01//07:<U662D><U548C>:%EC%Ey<U5E74>";/
"+:1:1926//12//25:1926//12//31:<U662D><U548C>:%EC<U5143><U5E74>";/
{ 1, 4, 1997 },
{ 1, 4, 1998 },
{ 1, 4, 2010 },
- { 1, 4, 2011 }
+ { 1, 4, 2011 },
+ { 30, 4, 2019 },
+ { 1, 5, 2019 }
};
static char ref[array_length (locales)][array_length (formats)]
static const int yrj[] =
{
43, 44, 45, 2,
- 63, 64, 1, 2, 9, 10, 22, 23
+ 63, 64, 1, 2, 9, 10, 22, 23, 31, 1
};
/* Buddhist calendar year to be checked. */
static const int yrb[] =
{
2453, 2454, 2455, 2456,
- 2531, 2532, 2532, 2533, 2540, 2541, 2553, 2554
+ 2531, 2532, 2532, 2533, 2540, 2541, 2553, 2554, 2562, 2562
};
/* R.O.C. calendar year to be checked. Negative number is prior to
Minguo counting up. */
static const int yrc[] =
{
-2, -1, 1, 2,
- 77, 78, 78, 79, 86, 87, 99, 100
+ 77, 78, 78, 79, 86, 87, 99, 100, 108, 108
};
for (i = 0; i < array_length (locales); i++)
era = (is_before (k, 30, 7, 1912)) ? "\u660e\u6cbb"
: (is_before (k, 25, 12, 1926)) ? "\u5927\u6b63"
: (is_before (k, 8, 1, 1989)) ? "\u662d\u548c"
- : "\u5e73\u6210";
+ : (is_before (k, 1, 5, 2019)) ? "\u5e73\u6210"
+ : "\u4ee4\u548c";
yr = yrj[k], sfx = "\u5e74";
}
else if (i == lo_LA)