Oh, I meant 'ZZ' vs 'XXX' not 'X'. On 1 Apr 2017 11:05 a.m., "Hyukjin Kwon" <gurwls...@gmail.com> wrote:
Thanks for your answer, Chas. I understood ISO 8601 is supportrd by both 'X' and 'ZZ'. Do you maybe know if they are the same and interchangable? I am worried of any regression after replacing 'ZZ' to 'X'. I read the codes and checked they are same at my best but I wonder if I missed anything and want to be sure. Thanks. On 31 Mar 2017 10:31 p.m., "Chas Honton" <c...@honton.org> wrote: The javadoc for FastDatePrinter states: "Starting with JDK7, ISO 8601 support was added using the pattern 'X'. To maintain compatibility, 'ZZ'will continue to be supported, but using one of the 'X' formats is recommended." Chas > On Mar 31, 2017, at 5:38 AM, Hyukjin Kwon <gurwls...@gmail.com> wrote: > > Hi all, > > > I am trying to replace 'ZZ' time format to 'XXX' format to resolve an issue > in Apache Spark. > > I looked at the codes related with this as below: > > https://github.com/apache/commons-lang/blob/8767cd4f1a6af070 93c1e6c422dae8e574be7e5e/src/main/java/org/apache/commons/ lang3/time/FastDateParser.java#L930 > > https://github.com/apache/commons-lang/blob/8767cd4f1a6af070 93c1e6c422dae8e574be7e5e/src/main/java/org/apache/commons/ lang3/time/FastDateParser.java#L932-L951 > > https://github.com/apache/commons-lang/blob/8767cd4f1a6af070 93c1e6c422dae8e574be7e5e/src/main/java/org/apache/commons/ lang3/time/FastDateParser.java#L596-L601 > > Up to my tests and reading codes, it seems both are identical to me. > > Is this true and would this be identical in the future too? > > Or maybe is 'ZZ' going to be deprecated soon? > > I appreciate if anyone could confirm this please. > > > Thank you in advance.