Login

Era (era)

Define how years are counted and displayed for each era in a locale. The operand shall consist of semicolon-separated strings. Each string shall be an era description segment with the format: direction:offset:start_date:end_date:era_name:era_format according to the definitions below. There can be as many era description segments as are necessary to describe the different eras. NOTE: The start of an era might not be the earliest point in the era - it may be the AD 1, and increases with earlier time. direction Either a ’+’ or a ’-’ character. The ’+’ character shall indicate that years closer to the start_date have lower numbers than those closer to the end_date. The ’-’ character shall indicate that years closer to the start_date have higher numbers than those closer to the end_date. offset The number of the year closest to the start_date in the era, corresponding to the %Ey conversion specification start_date A date in the format YYYYMMDD, where YYYY, MM, and DD are the year, month, and day numbers respectively according to ISO 8601 of the start of the era. Years prior to AD 1 shall be represented as negative numbers. end_date The ending date of the era, in the same format as the start_date, or one of the two special values "-*" or "+*". The value "-*" shall indicate that the ending date is the beginning of time. The value "+*" shall indicate that the ending date is the end of time. era_name A string representing the name of the era, corresponding to the %EC conversion specification. era_format A string for formatting the year in the era, corresponding to the %EY conversion specification.
cmn_TW
+:2:1913/01/01:+*:民國:%EC%Ey年
+:1:1912/01/01:1912/12/31:民國:%EC元年
+:1:1911/12/31:-*:民前:%EC%Ey年
glibc-HEAD
hak_TW
+:2:1913/01/01:+*:民國:%EC%Ey年
+:1:1912/01/01:1912/12/31:民國:%EC元年
+:1:1911/12/31:-*:民前:%EC%Ey年
glibc-HEAD
ja_JP
+:2:2020/01/01:+*:令和:%EC%Ey年
+:1:2019/05/01:2019/12/31:令和:%EC元年
+:2:1990/01/01:2019/04/30:平成:%EC%Ey年
+:1:1989/01/08:1989/12/31:平成:%EC元年
+:2:1927/01/01:1989/01/07:昭和:%EC%Ey年
+:1:1926/12/25:1926/12/31:昭和:%EC元年
+:2:1913/01/01:1926/12/24:大正:%EC%Ey年
+:1:1912/07/30:1912/12/31:大正:%EC元年
+:6:1873/01/01:1912/07/29:明治:%EC%Ey年
+:1:0001/01/01:1872/12/31:西暦:%EC%Ey年
+:1:-0001/12/31:-*:紀元前:%EC%Ey年
glibc-HEAD
lo_LA
+:1:-543/01/01:+*:ພ.ສ.:%EC %Ey
glibc-HEAD
lzh_TW
+:2:1913/01/01:+*:民國:%EC%Ey年
+:1:1912/01/01:1912/12/31:民國:%EC元年
+:1:1911/12/31:-*:民前:%EC%Ey年
glibc-HEAD
nan_TW
+:2:1913/01/01:+*:民國:%EC%Ey年
+:1:1912/01/01:1912/12/31:民國:%EC元年
+:1:1911/12/31:-*:民前:%EC%Ey年
glibc-HEAD
th_TH
+:1:-543/01/01:+*:พ.ศ.:%EC %Ey
glibc-HEAD
zh_TW
+:2:1913/01/01:+*:民國:%EC%Ey年
+:1:1912/01/01:1912/12/31:民國:%EC元年
+:1:1911/12/31:-*:民前:%EC%Ey年
glibc-HEAD