Why Joda DateTimeFormatter cannot parse timezone names ('z')

后端 未结 3 2266
有刺的猬
有刺的猬 2020-12-09 16:58

From DateTimeFormatter javadoc:

Zone names: Time zone names (\'z\') cannot be parsed.

Therefore timezone parsing like:

3条回答
  •  不知归路
    2020-12-09 17:24

    Probably because some time zone abbreviations are ambiguous and the parser can't know which time zone is meant.

    It might of course also be one of the tiny, strange ticks and missing features you find after working with Joda for a while.

提交回复
热议问题