如何使用两个字符时区显示格式日期(例如:ET 而不是 EST)

How to display the formated date with two characters timezone (Ex: ET instead of EST)

可以使用 SimpleDateFormat 更改日期格式。但是无法将时区格式更改为两个字符,就像 here

想要 Java/Android

的相同逻辑

首先,不要,因为标准与日光很重要。

如果绝对必要,请在格式化后执行正则表达式替换:

dateFormat.format(date).replaceFirst("([ECMP])[SD]T", "T")