CLDR G
Era.
AD
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The era marker (AD/CE). Only the CLDR family, Java, and .NET expose it; the strftime family and Go have no token, which only matters before year 1.
| Language | Token | Caveat |
|---|---|---|
| C# custom format | g | Renders A.D.; gg is identical. |
| CLDR / ICU pattern | G | G through GGG are the abbreviation (AD); GGGG is wide, GGGGG narrow. |
| Java DateTimeFormatter | G | |
| JavaScript Intl.DateTimeFormat | era: "short" | "long" gives Anno Domini, "narrow" gives A. |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.