What's the best way to parse an XML dateTime in Java?

后端 未结 9 1012
刺人心
刺人心 2020-11-28 06:16

What\'s the best way to parse an XML dateTime in Java? Legal dateTime values include 2002-10-10T12:00:00-05:00 AND 2002-10-10T17:00:00Z

Is there a good open source l

9条回答
  •  粉色の甜心
    2020-11-28 06:35

    See Parse and format dateTime values, although: -It takes "GMT" as the default timezone -It does not complain if there are trailing non-parseable parts -Does not take into account that TimeZone defaults to "GMT" on wrong "GMT+xxxx"

提交回复
热议问题